Browse Source

- Clean up Web UI

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
93f3d0b687
  1. 3
      src/webui/index.html
  2. 3
      src/webui/prop-files.html
  3. 3
      src/webui/scripts/client.js

3
src/webui/index.html

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>qBittorrent web User Interface</title> <title>qBittorrent web User Interface</title>

3
src/webui/prop-files.html

@ -13,7 +13,6 @@
</span> </span>
<script type="text/javascript"> <script type="text/javascript">
var round1 = function(val){return Math.round(val*10)/10};
var waitingTorrentFiles=false; var waitingTorrentFiles=false;
var current_hash = ""; var current_hash = "";
@ -164,7 +163,7 @@ var createPriorityCombo = function(id, selected_prio) {
row.length = 4; row.length = 4;
row[0] = file.name; row[0] = file.name;
row[1] = file.size; row[1] = file.size;
row[2] = round1(file.progress*100); row[2] = (file.progress*100).round(1);
row[3] = file.priority; row[3] = file.priority;
fTable.insertRow(i, row); fTable.insertRow(i, row);
i++; i++;

3
src/webui/scripts/client.js

@ -119,7 +119,6 @@ window.addEvent('domready', function(){
} }
return ''; return '';
}; };
var round1 = function(val){return Math.round(val*10)/10};
var ajaxfn = function(){ var ajaxfn = function(){
var queueing_enabled = false; var queueing_enabled = false;
var url = 'json/events'; var url = 'json/events';
@ -147,7 +146,7 @@ window.addEvent('domready', function(){
row[1] = event.name; row[1] = event.name;
row[2] = event.priority row[2] = event.priority
row[3] = event.size; row[3] = event.size;
row[4] = round1(event.progress*100); row[4] = (event.progress*100).round(1);
row[5] = event.num_seeds; row[5] = event.num_seeds;
row[6] = event.num_leechs; row[6] = event.num_leechs;
row[7] = event.dlspeed; row[7] = event.dlspeed;

Loading…
Cancel
Save