summaryrefslogtreecommitdiff
path: root/static/website
diff options
context:
space:
mode:
Diffstat (limited to 'static/website')
-rw-r--r--static/website/js/cloud.js1
-rw-r--r--static/website/templates/index.html1
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>