diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 00:15:04 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-08 00:15:04 +0100 |
commit | 4bbb75de3ee0b0f02408f8c39d82004b7209ea7e (patch) | |
tree | e61aede937e5f0011a8432a99ec90098e9bf0251 /module/web/ajax/views.py | |
parent | new l18n files (diff) | |
download | pyload-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.py | 9 |
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 |