From 029a92983d88567224bf548fbf6d603df5da593e Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 15:50:54 +0530 Subject: [PATCH] disable delete button if user cannot remove item --- static/js/pandora/filesView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/pandora/filesView.js b/static/js/pandora/filesView.js index 274633af5..5495e7d3c 100644 --- a/static/js/pandora/filesView.js +++ b/static/js/pandora/filesView.js @@ -27,6 +27,7 @@ pandora.ui.filesView = function(options, self) { }); self.$deleteButton = Ox.Button({ + disabled: !pandora.site.capabilities.canRemoveItems[pandora.user.ui.level], title: 'Delete ' + pandora.site.itemName.singular + '...', width: 128 })