summaryrefslogtreecommitdiffstats
path: root/module/web/ajax/views.py
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/views.py
parentnew l18n files (diff)
downloadpyload-4bbb75de3ee0b0f02408f8c39d82004b7209ea7e.tar.xz
new buttons to (remove finished/restart failed) links
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r--module/web/ajax/views.py9
1 files changed, 9 insertions, 0 deletions
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