Skip to content
Snippets Groups Projects
Commit 418068f6 authored by Laurent's avatar Laurent
Browse files

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

parent 31a572dc
Branches
Tags
4 merge requests!2334Master,!2254Master,!2253Hotline master,!2245hotline #62020 fix widget drag&drop on profil page configuration
Pipeline #2086 passed with stage
in 20 minutes and 32 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