From f1018cde9336baadd1c7efe82cfbe3d37348916a Mon Sep 17 00:00:00 2001 From: Catouse Date: Thu, 5 Jul 2018 10:24:38 +0800 Subject: [PATCH] * improve UI of dashboard. --- module/block/js/dashboard.js | 5 ++++- module/common/view/datatable.html.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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(); } });