From 925e577a94ae5483998518f83016687ab7567d5c Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 25 Apr 2017 12:00:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E8=BF=87=E8=99=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/hook/FilterView.php | 6 +++++- static/admin/listen.js | 10 +++++----- static/admin/plugs.js | 18 +++++++++--------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/extend/hook/FilterView.php b/extend/hook/FilterView.php index 579517855..3f6cac1a3 100644 --- a/extend/hook/FilterView.php +++ b/extend/hook/FilterView.php @@ -1,4 +1,5 @@ + * @date 2017/04/25 11:59 */ class FilterView { @@ -53,4 +56,5 @@ class FilterView { public function cnzz(&$params) { // @todo CNZZ统计 } -} \ No newline at end of file + +} diff --git a/static/admin/listen.js b/static/admin/listen.js index 3431aac05..0579ee6bb 100644 --- a/static/admin/listen.js +++ b/static/admin/listen.js @@ -66,11 +66,11 @@ define(['jquery', 'admin.plugs'], function () { /*! 注册 data-update 事件行为 */ this.$body.on('click', '[data-update]', function () { var id = $(this).attr('data-update') || (function () { - var data = []; - return $($(this).attr('data-list-target') || 'input.list-check-box').map(function () { - (this.checked) && data.push(this.value); - }), data.join(','); - }).call(this); + var data = []; + return $($(this).attr('data-list-target') || 'input.list-check-box').map(function () { + (this.checked) && data.push(this.value); + }), data.join(','); + }).call(this); if (id.length < 1) { return $.msg.tips('请选择需要操作的数据!'); } diff --git a/static/admin/plugs.js b/static/admin/plugs.js index 0cc26e815..f536a3232 100644 --- a/static/admin/plugs.js +++ b/static/admin/plugs.js @@ -26,12 +26,12 @@ define(['jquery'], function () { $(':input[placeholder]').map(function () { var self = $(this), txt = self.attr('placeholder'); self.wrap($('
').css({ - position: 'relative', zoom: '1', + margin: 'none', border: 'none', - background: 'none', padding: 'none', - margin: 'none' + background: 'none', + position: 'relative', })); var pos = self.position(), h = self.outerHeight(true), paddingleft = self.css('padding-left'); var holder = $('').text(txt).css({ @@ -167,8 +167,8 @@ define(['jquery'], function () { msg.prototype.loading = function (msg, callback) { this.close(); return this.index = msg - ? layer.msg(msg, {icon: 16, scrollbar: false, shade: this.shade, time: 0, end: callback}) - : layer.load(2, {time: 0, scrollbar: false, shade: this.shade, end: callback}); + ? layer.msg(msg, {icon: 16, scrollbar: false, shade: this.shade, time: 0, end: callback}) + : layer.load(2, {time: 0, scrollbar: false, shade: this.shade, end: callback}); }; /** @@ -752,10 +752,10 @@ define(['jquery'], function () { var callback = $(this).attr('data-callback'); $(this).attr('data-listen', "true").validate(function (data) { $.form.load(this.getAttribute('action') || window.location.href, data, - this.getAttribute('method') || 'POST', - window[callback || '_default_callback'] || undefined, true, - this.getAttribute('data-tips') || undefined, - this.getAttribute('data-time') || undefined); + this.getAttribute('method') || 'POST', + window[callback || '_default_callback'] || undefined, true, + this.getAttribute('data-tips') || undefined, + this.getAttribute('data-time') || undefined); }); $(this).find('[data-form-loaded]').map(function () { $(this).html(this.getAttribute('data-form-loaded') || this.innerHTML);