...
|
...
|
@@ -188,11 +188,31 @@ var Bll = { |
|
|
|
|
|
renderDecoratorPCTemplate: function() {
|
|
|
$('.decorator-right').html(common.util.__template2($('#pc-template').html(), {data: Bll.moduleDataList}));
|
|
|
let _975EditorArr = $('#pc-dragable-975').find('.modular-editor');
|
|
|
new common.dragSort.create(document.getElementById('pc-dragable-975'), {
|
|
|
animation: 150,
|
|
|
onEnd: function(evt) {
|
|
|
let oldIndex = evt.oldIndex;
|
|
|
let newIndex = evt.newIndex;
|
|
|
let oldEditor = _975EditorArr[oldIndex];
|
|
|
let newEditor = _975EditorArr[newIndex];
|
|
|
oldIndex = $(oldEditor).data('index');
|
|
|
newIndex = $(newEditor).data('index');
|
|
|
Bll.adaptModuleData(Bll.moduleDataList, oldIndex, newIndex);
|
|
|
}
|
|
|
});
|
|
|
let _160EditorArr = $('#pc-dragable-160').find('.modular-editor');
|
|
|
new common.dragSort.create(document.getElementById('pc-dragable-160'), {
|
|
|
animation: 150,
|
|
|
onEnd: function(evt) {
|
|
|
let oldIndex = evt.oldIndex;
|
|
|
let newIndex = evt.newIndex;
|
|
|
let oldEditor = _160EditorArr[oldIndex];
|
|
|
let newEditor = _160EditorArr[newIndex];
|
|
|
oldIndex = $(oldEditor).data('index');
|
|
|
newIndex = $(newEditor).data('index');
|
|
|
Bll.adaptModuleData(Bll.moduleDataList, oldIndex, newIndex);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
|
...
|
...
|
|