* add method to refresh all panels in dashboard.
This commit is contained in:
@@ -92,6 +92,18 @@ function initTableHeader()
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check refresh progress
|
||||
* @param object $dashboard
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function checkRefreshProgress($dashboard, doneCallback)
|
||||
{
|
||||
if($dashboard.find('.panel-loading').length) setTimeout(function() {checkRefreshProgress($dashboard, doneCallback);}, 500);
|
||||
else doneCallback();
|
||||
}
|
||||
|
||||
$(function()
|
||||
{
|
||||
var $dashboard = $('#dashboard').dashboard(
|
||||
|
||||
Reference in New Issue
Block a user