mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°6651 - 3.1 bulk modify n:n like Tagset: checkbox ignored (#552)
- handle selectize enable/disable to update operation hidden input state - don't execute elements click callback when input disabled - merge current and initial values for the initial value
This commit is contained in:
@@ -43,6 +43,24 @@ Selectize.define("combodo_update_operations", function (aOptions) {
|
||||
};
|
||||
})();
|
||||
|
||||
// Override enable function
|
||||
oSelf.enable = (function () {
|
||||
let oOriginal = oSelf.enable;
|
||||
return function () {
|
||||
oOriginal.apply(oSelf, arguments);
|
||||
oSelf.$operationsInput.prop('disabled', false);
|
||||
}
|
||||
})();
|
||||
|
||||
// Override disable function
|
||||
oSelf.disable = (function () {
|
||||
let oOriginal = oSelf.disable;
|
||||
return function () {
|
||||
oOriginal.apply(oSelf, arguments);
|
||||
oSelf.$operationsInput.prop('disabled', true);
|
||||
}
|
||||
})();
|
||||
|
||||
// Override addItem function
|
||||
oSelf.addItem = (function () {
|
||||
let oOriginal = oSelf.addItem;
|
||||
|
||||
Reference in New Issue
Block a user