* improve UI of dashboard.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -78,6 +78,7 @@ $(document).ready(function()
|
||||
{
|
||||
this.$datatable.find('.table').addClass('has-sort-head');
|
||||
}
|
||||
this.$datatable.find('.sparkline').sparkline();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user