dont trigger videopointsEvent on inactive elements, fixes #2324

This commit is contained in:
j 2014-02-18 08:44:30 +00:00
commit 1bde96af3c
2 changed files with 4 additions and 5 deletions

View file

@ -114,15 +114,14 @@ pandora.ui.info = function() {
})
.bindEvent({
click: function(data) {
pandora.UI.set(
'videoPoints.' + id + '.position',
data.position
);
if (ui.item && ['timeline', 'player', 'editor'].indexOf(ui.itemView) > -1) {
pandora.$ui[ui.itemView].options({
position: data.position
});
} else {
pandora.UI.set('videoPoints.' + id, {
'in': 0, out: 0, position: data.position
});
pandora.UI.set({
item: id,
itemView: ui.videoView