forked from 0x2620/pandora
edit panel: don't render if not in edits section, only editable if edit is static, pass item name
This commit is contained in:
parent
ec946213e7
commit
86cf90fa82
1 changed files with 5 additions and 1 deletions
|
@ -78,6 +78,9 @@ pandora.ui.editPanel = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderEdit() {
|
function renderEdit() {
|
||||||
|
if (ui.section != 'edits') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
that = pandora.$ui.editPanel = Ox.VideoEditPanel({
|
that = pandora.$ui.editPanel = Ox.VideoEditPanel({
|
||||||
annotationsCalendarSize: ui.annotationsCalendarSize,
|
annotationsCalendarSize: ui.annotationsCalendarSize,
|
||||||
annotationsFont: ui.annotationsFont,
|
annotationsFont: ui.annotationsFont,
|
||||||
|
@ -92,7 +95,7 @@ pandora.ui.editPanel = function() {
|
||||||
clipTooltip: 'clips <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'C</span>',
|
clipTooltip: 'clips <span class="OxBright">' + Ox.SYMBOLS.SHIFT + 'C</span>',
|
||||||
clipView: ui.edits[ui.edit].view,
|
clipView: ui.edits[ui.edit].view,
|
||||||
duration: edit.duration,
|
duration: edit.duration,
|
||||||
editable: edit.editable,
|
editable: edit.type == 'static' && edit.editable,
|
||||||
enableSubtitles: ui.videoSubtitles,
|
enableSubtitles: ui.videoSubtitles,
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
getClipImageURL: function(id, width, height) {
|
getClipImageURL: function(id, width, height) {
|
||||||
|
@ -104,6 +107,7 @@ pandora.ui.editPanel = function() {
|
||||||
},
|
},
|
||||||
height: pandora.$ui.appPanel.size(1),
|
height: pandora.$ui.appPanel.size(1),
|
||||||
'in': ui.edits[ui.edit]['in'],
|
'in': ui.edits[ui.edit]['in'],
|
||||||
|
itemName: pandora.site.itemName.singular,
|
||||||
layers: getLayers(edit.clips),
|
layers: getLayers(edit.clips),
|
||||||
loop: ui.videoLoop,
|
loop: ui.videoLoop,
|
||||||
muted: ui.videoMuted,
|
muted: ui.videoMuted,
|
||||||
|
|
Loading…
Reference in a new issue