edit panel: react to editselection change, add callback to updatePanel method

This commit is contained in:
rolux 2014-02-12 09:53:51 +00:00
parent 3b97b16c0a
commit 06a7ed425b

View file

@ -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();