diff options
author | Jayaram Pai | 2013-12-27 04:26:10 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-27 04:26:10 +0530 |
commit | 4fc8de24f4e26719ddb043f4779cdbc9914475bb (patch) | |
tree | 1c5c6b0a85d8bff064c2150cbae4dc17c99d4ea6 /static/website | |
parent | 06e73e7cd1c99ce224ee594b1e11129bc9a4e422 (diff) | |
download | scilab-on-cloud-4fc8de24f4e26719ddb043f4779cdbc9914475bb.tar.gz scilab-on-cloud-4fc8de24f4e26719ddb043f4779cdbc9914475bb.tar.bz2 scilab-on-cloud-4fc8de24f4e26719ddb043f4779cdbc9914475bb.zip |
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
Diffstat (limited to 'static/website')
-rw-r--r-- | static/website/images/ajax-loader.gif | bin | 0 -> 1079 bytes | |||
-rw-r--r-- | static/website/js/cloud.js | 2 | ||||
-rw-r--r-- | static/website/templates/index.html | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/static/website/images/ajax-loader.gif b/static/website/images/ajax-loader.gif Binary files differnew file mode 100644 index 0000000..408af5c --- /dev/null +++ b/static/website/images/ajax-loader.gif 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 @@ } } }); - </script> {% csrf_token %} </body> |