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,
|
duration: data.duration,
|
||||||
enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= data.rightslevel,
|
enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= data.rightslevel,
|
||||||
enableImport: pandora.site.capabilities.canImportAnnotations[pandora.user.level],
|
enableImport: pandora.site.capabilities.canImportAnnotations[pandora.user.level],
|
||||||
|
enableSetPosterFrame: !pandora.site.media.importFrames && data.editable,
|
||||||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||||
find: pandora.user.ui.itemFind,
|
find: pandora.user.ui.itemFind,
|
||||||
getFrameURL: function(position) {
|
getFrameURL: function(position) {
|
||||||
|
@ -46,7 +47,6 @@ pandora.ui.editor = function(data) {
|
||||||
out: pandora.user.ui.videoPoints[pandora.user.ui.item].out,
|
out: pandora.user.ui.videoPoints[pandora.user.ui.item].out,
|
||||||
position: pandora.user.ui.videoPoints[pandora.user.ui.item].position,
|
position: pandora.user.ui.videoPoints[pandora.user.ui.item].position,
|
||||||
posterFrame: data.posterFrame,
|
posterFrame: data.posterFrame,
|
||||||
posterFrameControls: !pandora.site.media.importFrames,
|
|
||||||
resolution: pandora.user.ui.videoResolution,
|
resolution: pandora.user.ui.videoResolution,
|
||||||
selected: pandora.user.ui.videoPoints[pandora.user.ui.item].annotation
|
selected: pandora.user.ui.videoPoints[pandora.user.ui.item].annotation
|
||||||
? pandora.user.ui.item + '/' + 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({
|
pandora.api.get({
|
||||||
id: pandora.user.ui.item,
|
id: pandora.user.ui.item,
|
||||||
keys: isVideoView ? [
|
keys: isVideoView ? [
|
||||||
'cuts', 'director', 'duration', 'layers',
|
'cuts', 'director', 'duration', 'editable', 'layers',
|
||||||
'parts', 'posterFrame', 'rendered', 'rightslevel',
|
'parts', 'posterFrame', 'rendered', 'rightslevel',
|
||||||
'size', 'title', 'videoRatio', 'year'
|
'size', 'title', 'videoRatio', 'year'
|
||||||
] : []
|
] : []
|
||||||
|
@ -64,7 +64,7 @@ pandora.ui.item = function() {
|
||||||
|
|
||||||
} else if (pandora.user.ui.itemView == 'info') {
|
} else if (pandora.user.ui.itemView == 'info') {
|
||||||
|
|
||||||
if (pandora.user.level == 'admin' && false) {
|
if (pandora.user.level == 'admin' && false) { // FIXME!!
|
||||||
var $form,
|
var $form,
|
||||||
$edit = Ox.Element()
|
$edit = Ox.Element()
|
||||||
.append($form = Ox.FormElementGroup({
|
.append($form = Ox.FormElementGroup({
|
||||||
|
|
Loading…
Reference in a new issue