summaryrefslogtreecommitdiffstats
path: root/module/web/ajax
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-12 21:57:32 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-12 21:57:32 +0100
commit26e9079d27f8b852f68970eb4ae2c5880cc20e70 (patch)
tree2cb57f1060dc763126a0036b616b9907a3b9d80c /module/web/ajax
parentlocale fix (diff)
downloadpyload-26e9079d27f8b852f68970eb4ae2c5880cc20e70.tar.xz
cnl fix, webif. add dialog - destionation choosable
Diffstat (limited to 'module/web/ajax')
-rw-r--r--module/web/ajax/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index d00c283f1..a4bfb5573 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -38,7 +38,9 @@ class JsonResponse(HttpResponse):
def add_package(request):
name = request.POST['add_name']
-
+
+ queue = int(request.POST['add_dest'])
+
links = request.POST['add_links'].replace(" ","\n").split("\n")
try:
@@ -61,7 +63,7 @@ def add_package(request):
links = filter(lambda x: x != "", links)
- settings.PYLOAD.add_package(name, links)
+ settings.PYLOAD.add_package(name, links, queue)
return JsonResponse("success")