mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°5904 - Use attribute linked set edit mode to enable actions (#440)
* Add corresponding buttons depending on old edit mode (need to check with piR pour récuperer l'ancienne valeur. * N°5904 - Handle attribute linked set edit_mode * N°5904 Move calls to private jquery widget methods to public * N°5904 - Worker improvements add button on link tagset * Change itop set widget to new set block UI (5) * Change itop set widget to new set block UI (5) * Renommage variables JS avec le prefix combodo * Search dialog block id conflict with form id * add moved js files in iTopWebPage compatibility list --------- Co-authored-by: Stephen Abello <stephen.abello@combodo.com>
This commit is contained in:
@@ -78,14 +78,14 @@ Selectize.define("combodo_multi_values_synthesis", function (aOptions) {
|
||||
}
|
||||
// Element exist in default selection,
|
||||
// click allow user to switch between add or ignore states
|
||||
if(oSelf.settings.initial.includes(sItemValue)) {
|
||||
if(oSelf.plugins.settings.combodo_update_operations.initial.includes(sItemValue)) {
|
||||
oSelf.listenClick($Item, sItemValue);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// If no operation to restore
|
||||
if(!oSelf.settings.initial.includes(sItemValue)) {
|
||||
if(!oSelf.plugins.settings.combodo_update_operations.initial.includes(sItemValue)) {
|
||||
|
||||
// Element doesn't exist in initial value, we mark it as added
|
||||
oSelf.Add($Item, sItemValue);
|
||||
@@ -112,7 +112,7 @@ Selectize.define("combodo_multi_values_synthesis", function (aOptions) {
|
||||
const $Item = oSelf.getItem(sItem);
|
||||
|
||||
// Element doesn't exist in default selection,
|
||||
if(!oSelf.settings.initial.includes(sItem)) {
|
||||
if(!oSelf.plugins.settings.combodo_update_operations.initial.includes(sItem)) {
|
||||
|
||||
// Remove operation
|
||||
delete aOperations[sItem];
|
||||
|
||||
Reference in New Issue
Block a user