- Allow to set up per-torrent upload rate limit from Web UI

- Updated Mootools to v1.2.4 and fix breakage with MochaUI
This commit is contained in:
Christophe Dumez
2009-11-25 10:03:04 +00:00
parent c48a3b55d6
commit 236c0da563
15 changed files with 814 additions and 495 deletions

View File

@@ -54,7 +54,45 @@ initializeWindows = function(){
});
});
uploadLimitFN = function() {
var h = myTable.selectedIds();
if(h.length){
var hash = h[0];
new MochaUI.Window({
id: 'uploadLimitPage',
title: "_(Torrent Upload Speed Limiting)",
loadMethod: 'iframe',
contentURL:'uploadlimit.html?hash='+hash,
scrollbars: false,
resizable: false,
maximizable: false,
paddingVertical: 0,
paddingHorizontal: 0,
width: 424,
height: 80
});
}
};
downloadLimitFN = function() {
var h = myTable.selectedIds();
if(h.length){
var hash = h[0];
new MochaUI.Window({
id: 'downloadLimitPage',
title: "_(Torrent Download Speed Limiting)",
loadMethod: 'iframe',
contentURL:'downloadlimit.html?hash='+hash,
scrollbars: false,
resizable: false,
maximizable: false,
paddingVertical: 0,
paddingHorizontal: 0,
width: 424,
height: 80
});
}
};
deleteFN = function() {
var h = myTable.selectedIds();