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:
bdalsass
2023-02-06 16:07:55 +01:00
committed by GitHub
parent 3fbc5e1ce0
commit 1fe9520b7e
28 changed files with 801 additions and 356 deletions

View File

@@ -18,7 +18,9 @@ let oWidget{{ oUIBlock.GetId() }} = $('#{{ oUIBlock.GetId() }}').selectize({
{# Remove button plugin #}
plugins: {
{# PLUGIN update operations #}
'combodo_update_operations' : {},
'combodo_update_operations' : {
initial: {{ oUIBlock.GetValue()|raw }},
},
{# PLUGIN combodo auto position #}
'combodo_auto_position' : {
maxDropDownHeight: 300, {# in px #}
@@ -73,7 +75,6 @@ let oWidget{{ oUIBlock.GetId() }} = $('#{{ oUIBlock.GetId() }}').selectize({
optgroups: {{ oDataProvider.GetOptionsGroups()|json_encode()|raw }},
{# Items data #}
initial: {{ oUIBlock.GetValue()|raw }},
items: {{ oUIBlock.GetValue()|raw }},
inputClass: 'ibo-input ibo-input-selectize ibo-input-set attribute-set selectize-input',
@@ -197,9 +198,12 @@ let oWidget{{ oUIBlock.GetId() }} = $('#{{ oUIBlock.GetId() }}').selectize({
{# plugin combodo_add_button #}
{% if oUIBlock.HasAddOptionButton() %}
onAdd: function(){
alert('todo on add option');
{{ oUIBlock.GetAddOptionButtonJsOnClick()|raw }}
},
{% endif %}
});