![[囧]](http://img.t.sinajs.cn/t35/style/images/common/face/ext/normal/15/j_thumb.gif)

diff --git a/blog-admin/src/main/resources/static/assets/js/gentelella.core.js b/blog-admin/src/main/resources/static/assets/js/gentelella.core.js
index e29db0520b271e8a172d8299a6dc4858df0a9c9d..5f0ca5f41728baacdd7e8aa8d73432dc8d8e4ce3 100644
--- a/blog-admin/src/main/resources/static/assets/js/gentelella.core.js
+++ b/blog-admin/src/main/resources/static/assets/js/gentelella.core.js
@@ -51,12 +51,6 @@ var gentelella = window.gentelella || {
return validator.checkAll($(this)) || (b = !1), b && this.submit(), !1
}));
},
- initHelloMsg: function () {
- var $helloMsg = $("#hello_msg");
- var now = new Date();
- var nowHours = now.getHours();
- $helloMsg.html((nowHours >= 0 && nowHours <= 5) ? "凌晨好" : (nowHours > 5 && nowHours <= 9) ? "早上好" : ((nowHours > 9 && nowHours <= 12) ? "上午好" : ((nowHours > 12 && nowHours <= 13) ? "中午好" : ((nowHours > 13 && nowHours <= 18) ? "下午好" : "晚上好"))));
- },
initSwitchery: function (delay) {
setTimeout(function () {
var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
@@ -166,5 +160,4 @@ $(document).ready(function () {
gentelella.initSidebar();
gentelella.initDaterangepicker();
gentelella.initValidator();
- gentelella.initHelloMsg();
});
\ No newline at end of file
diff --git a/blog-admin/src/main/resources/static/assets/js/zhyd.table.js b/blog-admin/src/main/resources/static/assets/js/zhyd.table.js
index 1ceee2588fd074e5951655a6d49d385758e49686..f2570a3aeb7d27ac23b228e61e0eb92187dcbfda 100644
--- a/blog-admin/src/main/resources/static/assets/js/zhyd.table.js
+++ b/blog-admin/src/main/resources/static/assets/js/zhyd.table.js
@@ -126,7 +126,7 @@ Table.prototype = {
type: "post",
url: options.getInfoUrl.replace("{id}", userId),
success: function (json) {
- if(json.status != 200) {
+ if (json.status != 200) {
$.alert.error(json.message);
return;
}
@@ -155,7 +155,7 @@ Table.prototype = {
/* 删除 */
function remove(ids) {
var len = 1;
- if(typeof ids == "object") {
+ if (typeof ids == "object") {
len = ids.length;
}
$.alert.confirm("确定删除已选中的" + len + "条 [ " + options.modalName + " ] 信息?", function () {
@@ -191,11 +191,11 @@ Table.prototype = {
remove(userId);
});
},
- bindEvent: function(eventName, selector, callback){
+ bindEvent: function (eventName, selector, callback) {
var options = this.options;
$(options.tableBox).on(eventName, selector, callback);
},
- bindClickEvent: function(selector, callback) {
+ bindClickEvent: function (selector, callback) {
this.bindEvent("click", selector, callback);
},
queryParams: function (params) {
@@ -205,6 +205,10 @@ Table.prototype = {
},
refresh: function () {
var options = this.options;
+ if (options.reloadAll) {
+ window.location.reload();
+ return;
+ }
$(options.tableBox).bootstrapTable('refresh', {url: options.url});
},
getSelectedIds: function () {
@@ -239,7 +243,7 @@ Table.prototype = {
url: url,
success: function (json) {
$.alert.ajaxSuccess(json);
- if(json.status == 200) {
+ if (json.status == 200) {
$modal.modal('hide');
}
$table.refresh();
@@ -253,7 +257,7 @@ Table.prototype = {
data: $form.serialize(),
success: function (json) {
$.alert.ajaxSuccess(json);
- if(json.status == 200) {
+ if (json.status == 200) {
$modal.modal('hide');
}
$table.refresh();
@@ -272,7 +276,7 @@ Table.prototype = {
});
},
clearText: function ($this, type, info) {
- if($this.hasClass("final") || $this.data("final")) {
+ if ($this.hasClass("final") || $this.data("final")) {
return;
}
var $div = $this.parents(".item");
@@ -315,9 +319,9 @@ Table.prototype = {
}
$this.val(thisValue);
} else {
- if(type == 'file') {
+ if (type == 'file') {
var previewContainer = $this.data("preview-container");
- if(previewContainer) {
+ if (previewContainer) {
$(previewContainer).html('')
}
} else if (type == 'password') {
diff --git a/blog-admin/src/main/resources/static/assets/js/zhyd.treetable.js b/blog-admin/src/main/resources/static/assets/js/zhyd.treetable.js
index d3982ed56aa6d2eeae15394020b6ae37b8db7d36..fe9a11b9c0caf340fa3823c2a4670fb6ff1018e4 100644
--- a/blog-admin/src/main/resources/static/assets/js/zhyd.treetable.js
+++ b/blog-admin/src/main/resources/static/assets/js/zhyd.treetable.js
@@ -18,7 +18,7 @@ $.extend({
toobarTemplate: '