From 17d3114102e59921b241a597e060c3174dbca396 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 7 Aug 2018 17:54:32 +0100 Subject: [PATCH] keep findstate --- static/js/editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/editor.js b/static/js/editor.js index da85b5b19..3e43c9708 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -26,7 +26,7 @@ pandora.ui.editor = function(data) { enableSetPosterFrame: !pandora.site.media.importFrames && data.editable, enableSubtitles: ui.videoSubtitles, find: ui.itemFind, - findLayer: pandora.user.ui._findState.key, + findLayer: ui._findState.key, getFrameURL: function(position) { return pandora.getMediaURL('/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg?' + data.modified); }, @@ -238,6 +238,9 @@ pandora.ui.editor = function(data) { listView: 'clip' }); }, + findlayer: function(data) { + ui._findState.key = data; + }, gainfocus: function() { pandora.$ui.mainMenu.replaceItemMenu(); },