diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 388d5b0e8..7dcc91f0f 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -326,6 +326,9 @@ pandora.ui.editPanel = function(isEmbed) { volume: function(data) { pandora.UI.set({videoVolume: data.volume}); }, + pandora_editselection: function(data) { + that.options({selected: data.value}); + }, pandora_showclips: function(data) { that.options({showClips: data.value}); }, @@ -336,9 +339,12 @@ pandora.ui.editPanel = function(isEmbed) { that.options({timeline: data.value}); } }); - that.updatePanel = function() { + that.updatePanel = function(callback) { Ox.Request.clearCache('getEdit'); - getEdit(updateClips); + getEdit(function() { + updateClips(); + callback && callback(); + }); }; pandora.$ui.mainPanel.replaceElement(1, that); updateSmallTimelineURL();