ui.js: Add event `column-moved`

- Param1 is the event itself (event.target.id == #col where the content is moved)
- Param2 is the soucre col id, form which the content is moved
This commit is contained in:
Sukhwinder Dhillon 2023-06-28 10:07:21 +02:00 committed by Johannes Meyer
parent 0424c66a9c
commit f3f35f86fd
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@
var kill = this.cutContainer($('#col1'));
this.pasteContainer($('#col1'), col2);
this.icinga.behaviors.navigation.trySetActiveAndSelectedByUrl($('#col1').data('icingaUrl'));
$('#col1').trigger('column-moved', 'col2');
},
moveToRight: function () {
@ -220,6 +221,7 @@
this.cutContainer($(col2)); // Clear col2 states
this.pasteContainer($(col2), col1Backup);
this.layout2col();
$(col2).trigger('column-moved', 'col1');
},
cutContainer: function ($col) {