From 4fc8de24f4e26719ddb043f4779cdbc9914475bb Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Fri, 27 Dec 2013 04:26:10 +0530 Subject: basic code execution implemented. thanks to prathamesh920 for mode(2) thanks for jayparikh111 for reporting syntax error bug thanks to saketkc for !--error-2 suggestion --- static/website/images/ajax-loader.gif | Bin 0 -> 1079 bytes static/website/js/cloud.js | 2 ++ static/website/templates/index.html | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 static/website/images/ajax-loader.gif (limited to 'static/website') diff --git a/static/website/images/ajax-loader.gif b/static/website/images/ajax-loader.gif new file mode 100644 index 0000000..408af5c Binary files /dev/null and b/static/website/images/ajax-loader.gif differ diff --git a/static/website/js/cloud.js b/static/website/js/cloud.js index 1b64532..644d7fd 100644 --- a/static/website/js/cloud.js +++ b/static/website/js/cloud.js @@ -88,6 +88,7 @@ $(document).ready(function() { $("#execute").click(function() { var csrfmiddlewaretoken = $("[name='csrfmiddlewaretoken']").val(); var code = editor.getValue(); + $("body").css("cursor", "wait"); $.ajax({ url:"/ajax-execute/", type: "POST", @@ -97,6 +98,7 @@ $(document).ready(function() { }, dataType: "text", success: function(data) { + $("body").css("cursor", "auto"); result.setValue(data); } }); diff --git a/static/website/templates/index.html b/static/website/templates/index.html index a4b200b..8caa608 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -135,7 +135,6 @@ } } }); - {% csrf_token %} -- cgit