forked from 0x2620/pandora
add menu item to toggle icon size
This commit is contained in:
parent
f13f7d238c
commit
ac8c01ee98
1 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue