From 969daf07e545b3c50d5ce7034da9321c12bce26a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 3 Jan 2012 13:24:29 +0530 Subject: [PATCH] toggle size --- source/Ox.UI/js/Video/Ox.VideoEditor.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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}); }