Skip to content
Snippets Groups Projects
Commit f95e5c99 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#62020_regression_selection_module_a_usage_unique' into 'hotline-master'

hotline #62020 fix widget drag&drop on profil page configuration

See merge request !2245
parents bf1c5583 418068f6
Branches
Tags
4 merge requests!2334Master,!2254Master,!2253Hotline master,!2245hotline #62020 fix widget drag&drop on profil page configuration
Pipeline #2104 passed with stage
in 24 minutes and 27 seconds
- ticket #62020 : correction du glisser / déposer de plusieurs modules du même type dans la configuration de la page d'accueil côté pro
\ No newline at end of file
......@@ -107,9 +107,14 @@
var sources = widget.find('ul.source_list');
var containers = widget.find('ul.container_list');
var fixed = sources.html();
var lists = widget.find('ul');
var fixed = [];
sources.each(function(i, element) {
fixed.push($(element).html());
});
containers.each(function() {
var values = "";
$(this).find('li').each(function() {
......@@ -128,6 +133,11 @@
});
$(event.target).closest('div').find('input').val(values);
$(event.target).closest('div').find('input').change();
},
remove: function(event, ui) {
fixed.forEach(function(html, i) {
$(sources[i]).html(html);
});
}
});
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment