From 409c5a1fc287d20cced1b3c2505ce09b80bdd20a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 7 Jul 2023 16:14:17 +0530 Subject: [PATCH] avoid undefined errors --- static/js/infoView.js | 4 ++++ static/js/toolbar.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index 42f70ce8..2307e109 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -588,6 +588,10 @@ pandora.ui.infoView = function(data, isMixed) { pandora.UI.set({infoIconSize: iconSize}); } + that.resizeElement = function() { + // overwrite splitpanel resize + }; + that.reload = function() { var src = src = '/' + data.id + '/' + ( ui.icons == 'posters' ? 'poster' : 'icon' diff --git a/static/js/toolbar.js b/static/js/toolbar.js index 464a7fc1..6eb0a845 100644 --- a/static/js/toolbar.js +++ b/static/js/toolbar.js @@ -95,7 +95,7 @@ pandora.ui.toolbar = function() { return ['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1 ? 152 : 316; } that.updateListName = function(listId) { - pandora.$ui.listTitle.options({title: getListName(listId)}); + pandora.$ui.listTitle && pandora.$ui.listTitle.options({title: getListName(listId)}); }; return that; };