From 5840e3bd762026b1d8b5291a3a03aeea5936a0bb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 21 Nov 2014 17:01:01 +0000 Subject: [PATCH] only reload if pandora..editPanel exists --- static/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 64889917..bfd40181 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -483,7 +483,7 @@ pandora.createLinks = function($element) { } else if (type == 'clip' && ui.section == 'edits') { // FIXME: update edit list (once it has item count) if (Ox.contains(object.targets, ui.edit)) { - pandora.$ui.editPanel.updatePanel(); + pandora.$ui.editPanel && pandora.$ui.editPanel.updatePanel(); } } callback && callback(); @@ -668,7 +668,7 @@ pandora.enableDragAndDrop = function($list, canMove, section) { : [pandora.user.ui.edit, drag.target.id]; pandora.doHistory(drag.action, data.ids, targets, function() { Ox.print('FIXME, reload clipslist on move'); - pandora.$ui.editPanel.updatePanel(); + pandora.$ui.editPanel && pandora.$ui.editPanel.updatePanel(); cleanup(250); }); }