summaryrefslogtreecommitdiffstats
path: root/module/web/ajax
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 00:15:04 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-08 00:15:04 +0100
commit4bbb75de3ee0b0f02408f8c39d82004b7209ea7e (patch)
treee61aede937e5f0011a8432a99ec90098e9bf0251 /module/web/ajax
parentnew l18n files (diff)
downloadpyload-4bbb75de3ee0b0f02408f8c39d82004b7209ea7e.tar.xz
new buttons to (remove finished/restart failed) links
Diffstat (limited to 'module/web/ajax')
-rw-r--r--module/web/ajax/urls.py2
-rw-r--r--module/web/ajax/views.py9
2 files changed, 11 insertions, 0 deletions
diff --git a/module/web/ajax/urls.py b/module/web/ajax/urls.py
index f661b2b6a..ebbf401af 100644
--- a/module/web/ajax/urls.py
+++ b/module/web/ajax/urls.py
@@ -31,4 +31,6 @@ urlpatterns = patterns('ajax',
(r'^package_order/([0-9|]+)$', 'views.package_order'),
(r'^link_order/([0-9|]+)$', 'views.link_order'),
(r'edit_package$', 'views.edit_package'),
+ (r'restart_failed$', 'views.restart_failed'),
+ (r'delete_finished$', 'views.delete_finished'),
) \ No newline at end of file
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py
index f90052b62..acceac585 100644
--- a/module/web/ajax/views.py
+++ b/module/web/ajax/views.py
@@ -310,3 +310,12 @@ def set_captcha(request):
return JsonResponse({'captcha': True, 'src': src, 'id': id})
else:
return JsonResponse({'captcha': False})
+
+
+@permission('pyload.can_delete')
+def delete_finished(request):
+ return JsonResponse({"del":settings.PYLOAD.delete_finished()})
+
+@permission('pyload.can_delete')
+def restart_failed(request):
+ return JsonResponse(settings.PYLOAD.restart_failed()) \ No newline at end of file