mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
更新UI基础组件
This commit is contained in:
parent
881d2bc340
commit
9b76f458c0
@ -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) {
|
$(form).bind("submit", function (event) {
|
||||||
var elements = $(this).find(self.inputTag);
|
var elements = $(this).find(self.inputTag);
|
||||||
if (self.isAllpass(elements, params) && params.validate() && $.isFunction(callback)) {
|
if (self.isAllpass(elements, params) && params.validate() && $.isFunction(callback)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user