|
|
@ -212,8 +212,11 @@ var DynamicTable = new Class({ |
|
|
|
if (tr.hasClass('selected')) |
|
|
|
if (tr.hasClass('selected')) |
|
|
|
tr.removeClass('selected'); |
|
|
|
tr.removeClass('selected'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.onSelectedRowChanged(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onSelectedRowChanged : function () {}, |
|
|
|
|
|
|
|
|
|
|
|
updateRowData : function (data) { |
|
|
|
updateRowData : function (data) { |
|
|
|
var rowId = data['rowId']; |
|
|
|
var rowId = data['rowId']; |
|
|
|
var row; |
|
|
|
var row; |
|
|
@ -350,7 +353,6 @@ var DynamicTable = new Class({ |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Simple selection
|
|
|
|
// Simple selection
|
|
|
|
this._this.selectRow(this.rowId); |
|
|
|
this._this.selectRow(this.rowId); |
|
|
|
updatePropertiesPanel(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -720,6 +722,10 @@ var TorrentsTable = new Class({ |
|
|
|
|
|
|
|
|
|
|
|
getCurrentTorrentHash : function () { |
|
|
|
getCurrentTorrentHash : function () { |
|
|
|
return this.getSelectedRowId(); |
|
|
|
return this.getSelectedRowId(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onSelectedRowChanged : function () { |
|
|
|
|
|
|
|
updatePropertiesPanel(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|