diff --git a/chrome/chromeFiles/content/scholar/sidebar.js b/chrome/chromeFiles/content/scholar/sidebar.js index eba384f73..92f72e097 100644 --- a/chrome/chromeFiles/content/scholar/sidebar.js +++ b/chrome/chromeFiles/content/scholar/sidebar.js @@ -134,37 +134,48 @@ Scholar.TreeView.prototype.performAction = function(action) { } Scholar.TreeView.prototype.performActionOnCell = function(action, row, col) { } Scholar.TreeView.prototype.getProgressMode = function(row, col) { } -Scholar.TreeView.prototype.deleteSelectedItem = function() +Scholar.TreeView.prototype.deleteSelection = function() { if(this.selection.count == 0) { return; } - else if(confirm("Are you sure you want to delete the selected item"+(this.selection.count > 1 ? "s" : "")+"?")) + if(!confirm("Are you sure you want to delete the selected item"+(this.selection.count > 1 ? "s" : "")+"?")) { - var items = new Array(); - var start = new Object(); - var end = new Object(); - - for (var i=0, len=this.selection.getRangeCount(); i