diff --git a/deluge/ui/webui/json_api.py b/deluge/ui/webui/json_api.py index 4f238e8b0..bc676825e 100644 --- a/deluge/ui/webui/json_api.py +++ b/deluge/ui/webui/json_api.py @@ -77,8 +77,6 @@ class json_rpc: method = json_data["method"] params = json_data["params"] - log.debug("PP==%s" % json_data["params"]) - if method.startswith('_'): raise Exception('_ methods are illegal.') @@ -113,7 +111,6 @@ class json_rpc: #Call: func = getattr(sclient, method) - log.debug("PARAMS=%s" % params) result = func(*params) return { diff --git a/deluge/ui/webui/templates/ajax_demo/index.html b/deluge/ui/webui/templates/ajax_demo/index.html index c79d0edb8..6a9020cc7 100644 --- a/deluge/ui/webui/templates/ajax_demo/index.html +++ b/deluge/ui/webui/templates/ajax_demo/index.html @@ -45,8 +45,7 @@ function get_torrents_status(torrent_ids) { }; -function list_torrents(torrent_ids) { - //This code will send a data object via a GET request and alert the retrieved data. +function list_torrents() { service.get_session_state({params:[], onSuccess:function(torrent_ids){ get_torrents_status(torrent_ids)