mirror of
https://github.com/itflow-org/itflow
synced 2026-05-10 21:27:48 +00:00
Migrated from sbadmin to AdminLTE CSS framework
This commit is contained in:
33
plugins/inputmask/inputmask/bindings/inputmask.binding.js
Normal file
33
plugins/inputmask/inputmask/bindings/inputmask.binding.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*!
|
||||
* bindings/inputmask.binding.js
|
||||
* https://github.com/RobinHerbots/Inputmask
|
||||
* Copyright (c) 2010 - 2019 Robin Herbots
|
||||
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
||||
* Version: 4.0.9
|
||||
*/
|
||||
|
||||
(function(factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define([ "jquery", "../inputmask", "../global/window" ], factory);
|
||||
} else if (typeof exports === "object") {
|
||||
module.exports = factory(require("jquery"), require("../inputmask"), require("../global/window"));
|
||||
} else {
|
||||
factory(jQuery, window.Inputmask, window);
|
||||
}
|
||||
})(function($, Inputmask, window) {
|
||||
$(window.document).ajaxComplete(function(event, xmlHttpRequest, ajaxOptions) {
|
||||
if ($.inArray("html", ajaxOptions.dataTypes) !== -1) {
|
||||
$(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx, lmnt) {
|
||||
if (lmnt.inputmask === undefined) {
|
||||
Inputmask().mask(lmnt);
|
||||
}
|
||||
});
|
||||
}
|
||||
}).ready(function() {
|
||||
$(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(ndx, lmnt) {
|
||||
if (lmnt.inputmask === undefined) {
|
||||
Inputmask().mask(lmnt);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user