- Fixed several issues with Web UI

This commit is contained in:
Christophe Dumez
2009-11-23 13:35:46 +00:00
parent 74f0737903
commit 34ba69e319
6 changed files with 17 additions and 11 deletions

View File

@@ -93,11 +93,12 @@ window.addEvent('domready', function(){
row[8] = event.upspeed;
row[9] = event.eta;
row[10] = event.ratio;
if(row[2] != -1)
if(row[2] != "*")
queueing_enabled = true;
if(!torrent_hashes.contains(event.hash)) {
// New unfinished torrent
//torrent_hashes[torrent_hashes.length] = event.hash;
torrent_hashes[torrent_hashes.length] = event.hash;
//alert("Inserting row");
myTable.insertRow(event.hash, row);
} else {
// Update torrent data

View File

@@ -78,7 +78,7 @@ var dynamicTable = new Class ({
var trs = this.table.getElements('tr');
trs.each(function(tr,i){
var tds = tr.getElements('td');
tds.getLast().removeClass('invisible');
tds[2].removeClass('invisible');
}.bind(this));
this.priority_hidden = false;
},
@@ -126,8 +126,6 @@ var dynamicTable = new Class ({
//this.removeRow(id);
var tr = new Element('tr');
this.rows[id] = tr;
// Apply filter
this.applyFilterOnRow(tr, status);
for(var i=0; i<row.length; i++)
{
var td = new Element('td');
@@ -209,6 +207,8 @@ var dynamicTable = new Class ({
tr.injectInside(this.table);
this.altRow();
// Apply filter
//this.applyFilterOnRow(tr, status);
},
selectAll: function() {

View File

@@ -23,7 +23,7 @@ initializeWindows = function(){
new Event(e).stop();
new MochaUI.Window({
id: 'downloadPage',
title: 'Download from URLs',
title: "(Download from URL)",
loadMethod: 'iframe',
contentURL:'download.html',
scrollbars: false,
@@ -41,7 +41,7 @@ initializeWindows = function(){
new Event(e).stop();
new MochaUI.Window({
id: 'uploadPage',
title: 'Upload torrent file',
title: "_(Download local torrent)",
loadMethod: 'iframe',
contentURL:'upload.html',
scrollbars: false,
@@ -106,7 +106,7 @@ initializeWindows = function(){
new Event(e).stop();
new MochaUI.Window({
id: 'bugPage',
title: 'Report a Bug',
title: '_(Report a bug)',
loadMethod: 'iframe',
contentURL: 'http://bugs.qbittorrent.org/',
width: 650,