diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index d88d115c..427e13d0 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -411,7 +411,7 @@ Ox.VideoEditor = function(options, self) { self.$videoMenuButton = Ox.MenuButton({ items: [ - {id: 'toggleSize', title: 'Large Player', selected: self.options.playerSize == 'large', keyboard: 'shift +'}, + {id: 'toggleSize', title: 'Large Player', checked: self.options.playerSize == 'large', keyboard: 'shift +'}, {}, {group: 'resolution', min: 1, max: 1, items: self.resolutions}, {}, @@ -433,9 +433,7 @@ Ox.VideoEditor = function(options, self) { .bindEvent({ click: function(data) { var id = data.id; - if (id == 'toggleSize') { - toggleSize(); - } else if (id == 'keyboard') { + if (id == 'keyboard') { var dialog = Ox.Dialog({ buttons: [ Ox.Button({id: 'close', title: 'Close'}) @@ -450,8 +448,10 @@ Ox.VideoEditor = function(options, self) { } }, change: function(data) { - Ox.print('CHANGE', data); - if (data.id == 'resolution') { + var id = data.id; + if (id == 'toggleSize') { + toggleSize(); + } else if (data.id == 'resolution') { self.options.resolution = parseInt(data.checked[0].id); self.$player[0].options({resolution: self.options.resolution}); }