always include 'Go to Poster Frame' in editor view, fixes #667

This commit is contained in:
rolux 2012-04-23 09:54:38 +00:00
parent 4daa931a3c
commit 9e8924683c
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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({