* improve UI of dashboard.

This commit is contained in:
Catouse
2018-07-05 10:24:38 +08:00
parent 5baae8f3ff
commit f1018cde93
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -62,7 +62,10 @@ function refreshBlock($panel, afterRefresh)
var $data = $(data);
if($data.hasClass('panel')) $panel.empty().append($data.children());
else if($panel.find('#assigntomeBlock').length) $panel.find('#assigntomeBlock').empty().append($data.children());
else $panel.find('.panel-body').replaceWith($data);
else
{
$panel.find('.panel-body,.empty-tip').replaceWith($data);
}
if($.isFunction(afterRefresh))
{
afterRefresh.call(this,
+1
View File
@@ -78,6 +78,7 @@ $(document).ready(function()
{
this.$datatable.find('.table').addClass('has-sort-head');
}
this.$datatable.find('.sparkline').sparkline();
}
});