mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Add processing double click on torrent
Starting/pausing torrent by double-clicking on it.
This commit is contained in:
parent
0fee2216d0
commit
c4332fe9a9
@ -356,6 +356,17 @@ var dynamicTable = new Class({
|
||||
myTable.selectRow(this.hash);
|
||||
return true;
|
||||
});
|
||||
tr.addEvent('dblclick', function (e) {
|
||||
e.stop();
|
||||
myTable.selectRow(this.hash);
|
||||
var row = myTable.rows.get(this.hash);
|
||||
var state = row['full_data'].state;
|
||||
if (~state.indexOf('paused'))
|
||||
startFN();
|
||||
else
|
||||
pauseFN();
|
||||
return true;
|
||||
});
|
||||
tr.addEvent('click', function (e) {
|
||||
e.stop();
|
||||
if (e.control) {
|
||||
|
@ -30,6 +30,8 @@ function getLocalStorageItem(name, defaultVal) {
|
||||
}
|
||||
|
||||
var deleteFN = function() {};
|
||||
var startFN = function() {};
|
||||
var pauseFN = function() {};
|
||||
|
||||
initializeWindows = function() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user