This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
lesechos/theme-authentic2/static/authentic2/admin_tools/js/dashboard.js

14 lines
495 B
JavaScript

var init_dashboard = function(id, columns, preferences, url) {
jQuery('#'+id).dashboard({
'columns': columns,
'load_preferences_function': function(options) {
return preferences;
},
'save_preferences_function': function(options, preferences) {
jQuery.post(url, { data: JSON.stringify(preferences) });
}
});
jQuery(".group-tabs").tabs();
jQuery(".group-accordion").accordion({header: '.group-accordion-header'});
};