From 9b76f458c008bbb579080fb7a93d320f43d78ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 21 Feb 2017 18:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0UI=E5=9F=BA=E7=A1=80=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin/plugs.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/public/static/admin/plugs.js b/public/static/admin/plugs.js index 7de3dae03..ed071a60e 100644 --- a/public/static/admin/plugs.js +++ b/public/static/admin/plugs.js @@ -669,25 +669,6 @@ define(['zeroclipboard', 'jquery'], function (ZeroClipboard) { } }); - (function ($) { - $.fn.serializeJson = function () { - var serializeObj = {}; - var array = this.serializeArray(); - $(array).each(function () { - if (serializeObj[this.name]) { - if ($.isArray(serializeObj[this.name])) { - serializeObj[this.name].push(this.value); - } else { - serializeObj[this.name] = [serializeObj[this.name], this.value]; - } - } else { - serializeObj[this.name] = this.value; - } - }); - return serializeObj; - }; - })(jQuery); - $(form).bind("submit", function (event) { var elements = $(this).find(self.inputTag); if (self.isAllpass(elements, params) && params.validate() && $.isFunction(callback)) {