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({
|
self.$videoMenuButton = Ox.MenuButton({
|
||||||
items: [
|
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},
|
{group: 'resolution', min: 1, max: 1, items: self.resolutions},
|
||||||
{},
|
{},
|
||||||
|
@ -433,9 +433,7 @@ Ox.VideoEditor = function(options, self) {
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function(data) {
|
click: function(data) {
|
||||||
var id = data.id;
|
var id = data.id;
|
||||||
if (id == 'toggleSize') {
|
if (id == 'keyboard') {
|
||||||
toggleSize();
|
|
||||||
} else if (id == 'keyboard') {
|
|
||||||
var dialog = Ox.Dialog({
|
var dialog = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
Ox.Button({id: 'close', title: 'Close'})
|
Ox.Button({id: 'close', title: 'Close'})
|
||||||
|
@ -450,8 +448,10 @@ Ox.VideoEditor = function(options, self) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
Ox.print('CHANGE', data);
|
var id = data.id;
|
||||||
if (data.id == 'resolution') {
|
if (id == 'toggleSize') {
|
||||||
|
toggleSize();
|
||||||
|
} else if (data.id == 'resolution') {
|
||||||
self.options.resolution = parseInt(data.checked[0].id);
|
self.options.resolution = parseInt(data.checked[0].id);
|
||||||
self.$player[0].options({resolution: self.options.resolution});
|
self.$player[0].options({resolution: self.options.resolution});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue