summaryrefslogtreecommitdiff
path: root/www/js/MontageHistoryCtrl2.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MontageHistoryCtrl2.js')
-rw-r--r--www/js/MontageHistoryCtrl2.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/js/MontageHistoryCtrl2.js b/www/js/MontageHistoryCtrl2.js
index 039e1ec4..d9107a0f 100644
--- a/www/js/MontageHistoryCtrl2.js
+++ b/www/js/MontageHistoryCtrl2.js
@@ -223,12 +223,14 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc
console.log("REDOING PACKERY & DRAG");
if (pckry !== undefined)
$timeout(function () {
- pckry.reloadItems();
+
draggies.forEach(function (drag) {
drag.destroy();
});
+
draggies = [];
+ pckry.reloadItems();
pckry.getItemElements().forEach(function (itemElem) {
draggie = new Draggabilly(itemElem);
pckry.bindDraggabillyEvents(draggie);
@@ -237,9 +239,10 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc
});
$timeout(function () {
- pckry.onresize();
+ console.log (">>>>> layouting");
+ //pckry.onresize();
pckry.layout();
- }, zm.packeryTimer);
+ }, 100);
}, 500);