build
[semainetech_django.git] / project / media / admin_tools / js / dashboard.js
1 var init_dashboard = function(id, columns, preferences, url) {
2 $('#'+id).dashboard({
3 'columns': columns,
4 'load_preferences_function': function(options) {
5 return preferences;
6 },
7 'save_preferences_function': function(options, preferences) {
8 jQuery.post(url, { data: JSON.stringify(preferences) });
9 }
10 });
11 $(".group-tabs").tabs();
12 $(".group-accordion").accordion({header: '.group-accordion-header'});
13 };