toggle size
This commit is contained in:
parent
a7b14f9e0a
commit
969daf07e5
1 changed files with 6 additions and 6 deletions
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue