|
|
|
|
@ -1164,13 +1164,13 @@ if (!empty($error)) { |
|
|
|
|
|
|
|
|
|
$("form#exercise_form").prepend($("#exercise-description")); |
|
|
|
|
|
|
|
|
|
$('button[name="previous_question_and_save"]').on("touchstart click", function (e) { |
|
|
|
|
$(\'button[name="previous_question_and_save"]\').on("touchstart click", function (e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
e.stopPropagation(); |
|
|
|
|
var |
|
|
|
|
$this = $(this), |
|
|
|
|
previousId = parseInt($this.data('prev')) || 0, |
|
|
|
|
questionId = parseInt($this.data('question')) || 0; |
|
|
|
|
previousId = parseInt($this.data(\'prev\')) || 0, |
|
|
|
|
questionId = parseInt($this.data(\'question\')) || 0; |
|
|
|
|
|
|
|
|
|
previous_question_and_save(previousId, questionId); |
|
|
|
|
}); |
|
|
|
|
@ -1238,13 +1238,13 @@ if (!empty($error)) { |
|
|
|
|
|
|
|
|
|
function save_now(question_id, url_extra) { |
|
|
|
|
//1. Normal choice inputs |
|
|
|
|
var my_choice = $('*[name*="choice['+question_id+']"]').serialize(); |
|
|
|
|
var my_choice = $(\'*[name*="choice['+question_id+']"]\').serialize(); |
|
|
|
|
|
|
|
|
|
//2. Reminder checkbox |
|
|
|
|
var remind_list = $('*[name*="remind_list"]').serialize(); |
|
|
|
|
var remind_list = $(\'*[name*="remind_list"]\').serialize(); |
|
|
|
|
|
|
|
|
|
//3. Hotspots |
|
|
|
|
var hotspot = $('*[name*="hotspot['+question_id+']"]').serialize(); |
|
|
|
|
var hotspot = $(\'*[name*="hotspot['+question_id+']"]\').serialize(); |
|
|
|
|
|
|
|
|
|
// Checking FCK |
|
|
|
|
if (question_id) { |
|
|
|
|
|