Live coder JS adjustments
This commit is contained in:
parent
fe4bcef4ae
commit
988f1346c1
@ -93,6 +93,9 @@ function loadLiveCoders(){
|
|||||||
$(elem).find("[data-id='live-coder-answer']").load("/live-coder-entry/" + qid, function(){
|
$(elem).find("[data-id='live-coder-answer']").load("/live-coder-entry/" + qid, function(){
|
||||||
$(elem).find('.js-error').addClass('hidden');
|
$(elem).find('.js-error').addClass('hidden');
|
||||||
$(elem).find(".code-input textarea").linedtextarea();
|
$(elem).find(".code-input textarea").linedtextarea();
|
||||||
|
if(window.location.href.indexOf("summary") > -1) {
|
||||||
|
$(elem).find(".code-input textarea").attr('disabled', true);
|
||||||
|
}
|
||||||
updateResults(this);
|
updateResults(this);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -177,8 +177,6 @@ $('.answer-block').prop('disabled', true);
|
|||||||
var qid = $(elem).data('qid');
|
var qid = $(elem).data('qid');
|
||||||
$(elem).find("[data-id='live-coder-answer']").load("/live-coder-entry/" + qid, function(){
|
$(elem).find("[data-id='live-coder-answer']").load("/live-coder-entry/" + qid, function(){
|
||||||
$(elem).find('.js-error').addClass('hidden');
|
$(elem).find('.js-error').addClass('hidden');
|
||||||
// updateResults();
|
|
||||||
$(elem).find(".code-input textarea").linedtextarea();
|
$(elem).find(".code-input textarea").linedtextarea();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user