diff options
author | prashantsinalkar | 2019-07-03 17:54:06 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-07-03 17:54:06 +0530 |
commit | 2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f (patch) | |
tree | 0cb13a1a7b87a7037cd3485d666a30e059b28a9c /static | |
parent | 3e9b2c2a0eae3a614a3ea3e3ac8670f380cba04e (diff) | |
download | R_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.tar.gz R_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.tar.bz2 R_on_Cloud_Web_Interface-2e6e7ae2c55f7136af5877a5bd81b0b6cf11927f.zip |
added sessions for browser
Diffstat (limited to 'static')
-rw-r--r-- | static/website/js/cloud.js | 1 | ||||
-rw-r--r-- | static/website/templates/index.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/static/website/js/cloud.js b/static/website/js/cloud.js index 9d99a3c..b8ed180 100644 --- a/static/website/js/cloud.js +++ b/static/website/js/cloud.js @@ -659,6 +659,7 @@ $(document.body).ready(function() { token: $( "[name='csrfmiddlewaretoken']" ).val(), + session_id: $("#session_id").val() || 0, code: editor.getValue(), book_id: $("#books").val() || 0, chapter_id: $("#chapters").val() || 0, diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 6653442..56989ab 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -213,6 +213,7 @@ </div> <textarea id="code" class="form-control" rows="5" placeholder="Write a new code or select existing from above category..." wrap="hard">{{ code }}</textarea> <br> + <input type="hidden" id="session_id" name="session_id" value="{{ session_id }}"> <a id="execute" class="btn btn-dark text-white"><span id="execute-inner">Execute</span></a> </div> |