From 85c900fdd5d070e93363768b346acbadc8f132d7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 15 Sep 2010 12:57:34 +0200 Subject: sorting fix --- module/web/ajax/views.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'module/web/ajax') diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index 5a6fc7b69..9430a54d4 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -212,7 +212,7 @@ def package_order(request, ids): try: pid, pos = ids.split("|") settings.PYLOAD.order_package(int(pid), int(pos)) - return JsonResponse("sucess") + return JsonResponse("success") except: print_exc() return HttpResponseServerError() @@ -222,7 +222,7 @@ def link_order(request, ids): try: pid, pos = ids.split("|") settings.PYLOAD.order_file(int(pid), int(pos)) - return JsonResponse("sucess") + return JsonResponse("success") except: print_exc() return HttpResponseServerError() @@ -240,7 +240,7 @@ def link(request, id): def remove_package(request, id): try: settings.PYLOAD.del_packages([int(id)]) - return JsonResponse("sucess") + return JsonResponse("success") except Exception, e: print_exc() return HttpResponseServerError() @@ -249,7 +249,7 @@ def remove_package(request, id): def restart_package(request, id): try: settings.PYLOAD.restart_package(int(id)) - return JsonResponse("sucess") + return JsonResponse("success") except Exception: return HttpResponseServerError() @@ -257,7 +257,7 @@ def restart_package(request, id): def restart_link(request, id): try: settings.PYLOAD.restart_file(int(id)) - return JsonResponse("sucess") + return JsonResponse("success") except Exception: return HttpResponseServerError() @@ -265,7 +265,7 @@ def restart_link(request, id): def abort_link(request, id): try: settings.PYLOAD.stop_download("link", int(id)) - return JsonResponse("sucess") + return JsonResponse("success") except: return HttpResponseServerError() @@ -273,7 +273,7 @@ def abort_link(request, id): def move_package(request, dest, id): try: settings.PYLOAD.move_package(int(dest), int(id)) - return JsonResponse("sucess") + return JsonResponse("success") except: return HttpResponseServerError() -- cgit v1.2.3