mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 18:26:11 +03:00
Add processing double click on torrent
Starting/pausing torrent by double-clicking on it.
This commit is contained in:
parent
0fee2216d0
commit
c4332fe9a9
2 changed files with 13 additions and 0 deletions
|
@ -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 a new issue