Rewrite code for returning information about torrents as JSON (Web UI)

- The new code is simpler, cleaner and more efficient
This commit is contained in:
Christophe Dumez 2012-05-26 20:42:44 +03:00
parent fc4989d738
commit 9a964d871d
19 changed files with 825 additions and 412 deletions

View file

@ -232,7 +232,7 @@ window.addEvent('load', function(){
var ajaxfn = function(){
var queueing_enabled = false;
var url = 'json/events';
var url = 'json/torrents';
if (!waiting){
waiting=true;
var request = new Request.JSON({