Replace Chosen jQuery plugin by custom UI component

This commit is contained in:
Frederic Guillot
2016-12-11 15:46:54 -05:00
parent a2b44371e0
commit ffb3926178
21 changed files with 385 additions and 1795 deletions

View File

@@ -43,9 +43,11 @@ KB.dom = function (tag) {
return this;
};
this.on = function (eventName, callback) {
this.on = function (eventName, callback, ignorePrevent) {
element.addEventListener(eventName, function (e) {
e.preventDefault();
if (! ignorePrevent) {
e.preventDefault();
}
callback(e.target);
});