更新UI基础组件

This commit is contained in:
邹景立 2017-02-21 18:21:04 +08:00
parent 881d2bc340
commit 9b76f458c0

View File

@ -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)) {