Add second UI element behavior for new video screen.
This commit is contained in:
parent
7a901b31c4
commit
1612d737a1
|
@ -63,7 +63,7 @@ devices.ready = function (event, arg) {
|
|||
$(`#${i}_device`).append(opt);
|
||||
}
|
||||
if (notify !== 'Connected to ') {
|
||||
gui.notify('DEVICES', notify)
|
||||
gui.notify('DEVICES', notify);
|
||||
}
|
||||
if (devs.length > 0) {
|
||||
$('#devices').empty();
|
||||
|
@ -76,10 +76,14 @@ devices.ready = function (event, arg) {
|
|||
}
|
||||
if (arg && arg.profile) {
|
||||
$('#profile').val(arg.profile)
|
||||
log.info(`Using configuration profile "${profile}"`, 'DEVICES', true, true);
|
||||
//devices.profile(arg.profile)
|
||||
}
|
||||
if (arg.projector_second) {
|
||||
|
||||
//add second row of projector pads to grid
|
||||
}
|
||||
if (arg.camera_second) {
|
||||
//add second row of camera pads to grid
|
||||
}
|
||||
return event.returnValue = true;
|
||||
};
|
||||
|
@ -137,8 +141,7 @@ devices.digitalSelect = function () {
|
|||
title : `Select video or image sequence`,
|
||||
properties : [`openFile`], // openDirectory, multiSelection, openFile
|
||||
defaultPath: 'c:/',
|
||||
filters :
|
||||
[
|
||||
filters : [
|
||||
{
|
||||
name: 'Videos',
|
||||
extensions
|
||||
|
@ -151,7 +154,8 @@ devices.digitalSelect = function () {
|
|||
}, (files) => {
|
||||
let valid = false;
|
||||
console.dir(files)
|
||||
let path = files[0]
|
||||
let path = files[0];
|
||||
let displayName;
|
||||
if (path && path !== '') {
|
||||
for (let ext of extensions) {
|
||||
if (path.toLowerCase().indexOf(`.${ext}`) !== -1) {
|
||||
|
@ -161,7 +165,9 @@ devices.digitalSelect = function () {
|
|||
if (!valid) return false;
|
||||
log.info(`Selected video ${path.split('/').pop()}`, 'DIGITAL', true);
|
||||
elem.attr('data-file', path);
|
||||
elem.val(path.split('/').pop());
|
||||
displayName = path.split('/').pop()
|
||||
elem.val(displayName);
|
||||
$('#video_file').val(displayName);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue