From 87c779718111689fd4a839c5dd14c6d1b3f9d6a0 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 13 Jan 2026 23:02:05 +0000 Subject: [PATCH 1/2] keep position in preview player --- static/js/previewPlayer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/previewPlayer.js b/static/js/previewPlayer.js index 35e2f1da..8e4229b9 100644 --- a/static/js/previewPlayer.js +++ b/static/js/previewPlayer.js @@ -150,14 +150,13 @@ pandora.ui.previewPlayer = function() { + Ox.formatDuration($player.options('position')); pandora.openURL(url); }, - playing: function(data) { - /* + position: function(data) { + console.log('position', data) pandora.UI.set( 'videoPoints.' + item.id + '.position', data.position ); - */ - } + }, }); that.options({content: $player}); From af09508a8738fcd2986f38bb3c4486fe7f75e15b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 13 Jan 2026 23:02:45 +0000 Subject: [PATCH 2/2] better ui name --- pandora/config.pandora.jsonc | 2 +- static/js/previewDialog.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index 2e89c08b..9a6681df 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -1197,7 +1197,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "preferences": "", "tv": "" }, - "previewView": "poster", + "preview": "poster", "section": "items", "sequenceMode": "shape", "sequenceSort": [{"key": "director", "operator": "+"}], diff --git a/static/js/previewDialog.js b/static/js/previewDialog.js index 09add0df..f506a83d 100644 --- a/static/js/previewDialog.js +++ b/static/js/previewDialog.js @@ -1,9 +1,9 @@ 'use strict'; pandora.ui.previewDialog = function() { - if (pandora.user.ui.previewView == "poster") { + if (pandora.user.ui.preview == "poster") { return pandora.ui.previewPoster() - } else if (pandora.user.ui.previewView == "player") { + } else if (pandora.user.ui.preview == "player") { return pandora.ui.previewPlayer() } };