dynamically load question ID
This commit is contained in:
1 parent
69ad750f88
commit
58c4661607
2 files changed
+2
-2
No files matched your search
@@ -113,7 +113,7 @@ $(function(){
|
||||
});
|
||||
|
||||
// If JavaScript is enabled, display the livecoder section dynamically
|
||||
var qid = 257208768;
|
||||
var qid = $('form#answer-form').data('qid');
|
||||
$("[data-id='live-coder-answer']").load("/live-coder-entry/" + qid, function(){
|
||||
// if it loads in, and hide "finish later" checkbox
|
||||
$("[data-id='live-coder-finish-later']").addClass("hidden");
|
||||
|
||||
Reference in new issue
Block a user