From b4fe34f5249f52bc65c2e90a833e28e50fbde820 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 3 Feb 2014 09:33:25 +0530 Subject: [PATCH] cosmetic changes --- static/js/documentsPanel.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index cdd6d34e7..8cdda0731 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -809,15 +809,15 @@ pandora.ui.documentsPanel = function(options) { string = selected.length < 2 ? 'Document' : ' Documents'; $list.options({selected: selected}); $itemMenu.setItemTitle('open', Ox._('Open ' + string)) - [selected.length > 0 ? 'enableItem' : 'disableItem']('open'); + [selected.length ? 'enableItem' : 'disableItem']('open'); if (isItemView) { $itemMenu.setItemTitle('edit', Ox._('Edit ' + string + '...')) .setItemTitle('remove', Ox._( 'Remove ' + string + ' from ' + pandora.site.itemName.singular )) - [selected.length > 0 ? 'enableItem' : 'disableItem']('edit') - [selected.length > 0 ? 'enableItem' : 'disableItem']('remove'); + [selected.length ? 'enableItem' : 'disableItem']('edit') + [selected.length ? 'enableItem' : 'disableItem']('remove'); } else { $itemMenu.setItemTitle('add', Ox._( 'Add ' + string + ' to Current ' @@ -825,9 +825,9 @@ pandora.ui.documentsPanel = function(options) { )) .setItemTitle('replace', Ox._('Replace ' + string + '...')) .setItemTitle('delete', Ox._('Delete ' + string + '...')) - [selected.length > 0 ? 'enableItem' : 'disableItem']('add') + [selected.length ? 'enableItem' : 'disableItem']('add') [selected.length == 1 ? 'enableItem' : 'disableItem']('replace') - [selected.length > 0 ? 'enableItem' : 'disableItem']('delete'); + [selected.length ? 'enableItem' : 'disableItem']('delete'); } $selectButton[selected.length > 1 ? 'show' : 'hide'](); $deselectButton[selected.length ? 'show' : 'hide']();