From ac8c01ee98fc1dfbcc020da5e61e36ba0bbbea86 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 29 Sep 2020 11:03:39 +0200 Subject: [PATCH] add menu item to toggle icon size --- static/js/infoView.padma.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index b6d44118..e5e894d0 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -44,6 +44,12 @@ pandora.ui.infoView = function(data, isMixed) { $options = Ox.MenuButton({ items: [ + { + id: 'toggle', + title: Ox._('Toggle {0} size...', [ + Ox._(ui.icons == 'posters' ? 'poster' : 'icon') + ]), + }, { id: 'delete', title: Ox._('Delete {0}...', [pandora.site.itemName.singular]), @@ -62,7 +68,9 @@ pandora.ui.infoView = function(data, isMixed) { }) .bindEvent({ click: function(data_) { - if (data_.id == 'delete') { + if (data_.id == 'toggle') { + toggleIconSize() + } else if (data_.id == 'delete') { pandora.$ui.deleteItemsDialog = pandora.ui.deleteItemsDialog({ items: [data] }).open();