mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00: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);
|
myTable.selectRow(this.hash);
|
||||||
return true;
|
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) {
|
tr.addEvent('click', function (e) {
|
||||||
e.stop();
|
e.stop();
|
||||||
if (e.control) {
|
if (e.control) {
|
||||||
|
@ -30,6 +30,8 @@ function getLocalStorageItem(name, defaultVal) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var deleteFN = function() {};
|
var deleteFN = function() {};
|
||||||
|
var startFN = function() {};
|
||||||
|
var pauseFN = function() {};
|
||||||
|
|
||||||
initializeWindows = function() {
|
initializeWindows = function() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user