//now you can refresh each dashboard module you want

This commit is contained in:
Vincent Augagneur
2013-09-02 17:22:51 +02:00
parent 121554026c
commit f165dae15d
5 changed files with 30 additions and 10 deletions
+10 -6
View File
@@ -31,14 +31,18 @@ function refreshDashbard(module_name)
{
if (typeof(module_name) == 'undefined')
module_name = 0;
datas = {
ajax:true,
action:'refreshDashboard',
module:module_name
};
else
$('#'+module_name+' section').each( function (){
$(this).addClass('loading');
});
$.ajax({
url : dashboard_ajax_url,
data : datas,
data : {
ajax:true,
action:'refreshDashboard',
module:module_name
},
dataType: 'json',
success : function(widgets){
for (var name in widgets)