diff --git a/module/block/js/dashboard.js b/module/block/js/dashboard.js index 3ea4d0f10f..7db0588247 100644 --- a/module/block/js/dashboard.js +++ b/module/block/js/dashboard.js @@ -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, diff --git a/module/common/view/datatable.html.php b/module/common/view/datatable.html.php index 76450e31f2..1725d9a274 100644 --- a/module/common/view/datatable.html.php +++ b/module/common/view/datatable.html.php @@ -78,6 +78,7 @@ $(document).ready(function() { this.$datatable.find('.table').addClass('has-sort-head'); } + this.$datatable.find('.sparkline').sparkline(); } });