Skip to content

Commit 3f33192

Browse files
authored
Backport torrent delete confirmation (#2727)
1 parent c492260 commit 3f33192

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/webui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var theWebUI =
3333
],
3434
container: "List",
3535
format: theFormatter.torrents,
36-
ondelete: function() { theWebUI.remove(); },
36+
ondelete: function() { theWebUI.removeTorrent(); },
3737
onselect: function(e,id) { theWebUI.trtSelect(e,id) },
3838
ondblclick: function(obj) { theWebUI.showDetails(obj.id); return(false); }
3939
},
@@ -1465,7 +1465,7 @@ var theWebUI =
14651465
}
14661466
theContextMenu.add([CMENU_CHILD, theUILang.Priority, _c0]);
14671467
theContextMenu.add([CMENU_SEP]);
1468-
theContextMenu.add([theUILang.Remove, (table.selCount > 1) || this.isTorrentCommandEnabled("remove",id) ? "theWebUI.remove()" : null]);
1468+
theContextMenu.add([theUILang.Remove, (table.selCount > 1) || this.isTorrentCommandEnabled("remove",id) ? "theWebUI.removeTorrent()" : null]);
14691469
theContextMenu.add([CMENU_SEP]);
14701470
theContextMenu.add([theUILang.Details, "theWebUI.showDetails('" + id + "')"]);
14711471
if((table.selCount > 1) || !this.isTorrentCommandEnabled("setprops",id))

0 commit comments

Comments
 (0)