forked from 0x2620/pandora
always include 'Go to Poster Frame' in editor view, fixes #667
This commit is contained in:
parent
4daa931a3c
commit
9e8924683c
2 changed files with 3 additions and 3 deletions
|
@ -21,6 +21,7 @@ pandora.ui.editor = function(data) {
|
|||
duration: data.duration,
|
||||
enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= data.rightslevel,
|
||||
enableImport: pandora.site.capabilities.canImportAnnotations[pandora.user.level],
|
||||
enableSetPosterFrame: !pandora.site.media.importFrames && data.editable,
|
||||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||
find: pandora.user.ui.itemFind,
|
||||
getFrameURL: function(position) {
|
||||
|
@ -46,7 +47,6 @@ pandora.ui.editor = function(data) {
|
|||
out: pandora.user.ui.videoPoints[pandora.user.ui.item].out,
|
||||
position: pandora.user.ui.videoPoints[pandora.user.ui.item].position,
|
||||
posterFrame: data.posterFrame,
|
||||
posterFrameControls: !pandora.site.media.importFrames,
|
||||
resolution: pandora.user.ui.videoResolution,
|
||||
selected: pandora.user.ui.videoPoints[pandora.user.ui.item].annotation
|
||||
? pandora.user.ui.item + '/' + pandora.user.ui.videoPoints[pandora.user.ui.item].annotation
|
||||
|
|
|
@ -11,7 +11,7 @@ pandora.ui.item = function() {
|
|||
pandora.api.get({
|
||||
id: pandora.user.ui.item,
|
||||
keys: isVideoView ? [
|
||||
'cuts', 'director', 'duration', 'layers',
|
||||
'cuts', 'director', 'duration', 'editable', 'layers',
|
||||
'parts', 'posterFrame', 'rendered', 'rightslevel',
|
||||
'size', 'title', 'videoRatio', 'year'
|
||||
] : []
|
||||
|
@ -64,7 +64,7 @@ pandora.ui.item = function() {
|
|||
|
||||
} else if (pandora.user.ui.itemView == 'info') {
|
||||
|
||||
if (pandora.user.level == 'admin' && false) {
|
||||
if (pandora.user.level == 'admin' && false) { // FIXME!!
|
||||
var $form,
|
||||
$edit = Ox.Element()
|
||||
.append($form = Ox.FormElementGroup({
|
||||
|
|
Loading…
Reference in a new issue