Fix reordering questions in forms

pull/1/head
yflory 3 years ago
parent 415ee6018b
commit bcd4d88f81

@ -2987,6 +2987,7 @@ define([
updateAddInline(); updateAddInline();
if (editable) { if (editable) {
if (APP.mainSortable) { APP.mainSortable.destroy(); }
APP.mainSortable = Sortable.create($container[0], { APP.mainSortable = Sortable.create($container[0], {
direction: "vertical", direction: "vertical",
filter: "input, button, .CodeMirror, .cp-form-type-sort, .cp-form-block-type.editable", filter: "input, button, .CodeMirror, .cp-form-type-sort, .cp-form-block-type.editable",

Loading…
Cancel
Save