Button fix
This commit is contained in:
parent
b83b46577b
commit
85426aa47f
@ -275,15 +275,15 @@ function configureVideoTab(site) {
|
|||||||
VideoPanel.elements.cropSettings.container.show();
|
VideoPanel.elements.cropSettings.container.show();
|
||||||
VideoPanel.elements.cropSettings.buttonContainer.show();
|
VideoPanel.elements.cropSettings.buttonContainer.show();
|
||||||
|
|
||||||
for (button in cropButtons) {
|
for (var button of cropButtons) {
|
||||||
const nb = new ShortcutButton(
|
const cmd = button.cmd;
|
||||||
|
var nb = new ShortcutButton(
|
||||||
'',
|
'',
|
||||||
button.label,
|
button.label,
|
||||||
(button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : ''),
|
(button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : ''),
|
||||||
() => basicCommandHandler(button.cmd),
|
() => basicCommandHandler(cmd),
|
||||||
['w24']
|
['w24']
|
||||||
)
|
)
|
||||||
console.log("BUTON CONTAINER", VideoPanel.elements.cropSettings.buttonContainer)
|
|
||||||
nb.appendTo(VideoPanel.elements.cropSettings.buttonContainer);
|
nb.appendTo(VideoPanel.elements.cropSettings.buttonContainer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -295,12 +295,13 @@ function configureVideoTab(site) {
|
|||||||
VideoPanel.elements.stretchSettings.container.show();
|
VideoPanel.elements.stretchSettings.container.show();
|
||||||
VideoPanel.elements.stretchSettings.buttonContainer.show();
|
VideoPanel.elements.stretchSettings.buttonContainer.show();
|
||||||
|
|
||||||
for (button in stretchButtons) {
|
for (var button of stretchButtons) {
|
||||||
const nb = new ShortcutButton(
|
const cmd = button.cmd;
|
||||||
|
var nb = new ShortcutButton(
|
||||||
'',
|
'',
|
||||||
button.label,
|
button.label,
|
||||||
button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : '',
|
button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : '',
|
||||||
() => basicCommandHandler(button.cmd),
|
() => basicCommandHandler(cmd),
|
||||||
['w24']
|
['w24']
|
||||||
)
|
)
|
||||||
nb.appendTo(VideoPanel.elements.stretchSettings.buttonContainer);
|
nb.appendTo(VideoPanel.elements.stretchSettings.buttonContainer);
|
||||||
@ -314,12 +315,13 @@ function configureVideoTab(site) {
|
|||||||
VideoPanel.elements.alignmentSettings.container.show();
|
VideoPanel.elements.alignmentSettings.container.show();
|
||||||
VideoPanel.elements.alignmentSettings.buttonContainer.show();
|
VideoPanel.elements.alignmentSettings.buttonContainer.show();
|
||||||
|
|
||||||
for (button in alignButtons) {
|
for (var button of alignButtons) {
|
||||||
const nb = new ShortcutButton(
|
const cmd = button.cmd;
|
||||||
|
var nb = new ShortcutButton(
|
||||||
'',
|
'',
|
||||||
button.label,
|
button.label,
|
||||||
button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : '',
|
button.shortcut && button.shortcut[0].key ? button.shortcut[0].key.toUpperCase() : '',
|
||||||
() => basicCommandHandler(),
|
() => basicCommandHandler(cmd),
|
||||||
['w24']
|
['w24']
|
||||||
)
|
)
|
||||||
nb.appendTo(VideoPanel.elements.alignmentSettings.buttonContainer);
|
nb.appendTo(VideoPanel.elements.alignmentSettings.buttonContainer);
|
||||||
|
Loading…
Reference in New Issue
Block a user