edit panel: react to editselection change, add callback to updatePanel method
This commit is contained in:
parent
3b97b16c0a
commit
06a7ed425b
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue