summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-add-edit-exam.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/exams/templates/page-add-edit-exam.html')
-rw-r--r--modules-available/exams/templates/page-add-edit-exam.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html
index 106c6641..bf000df5 100644
--- a/modules-available/exams/templates/page-add-edit-exam.html
+++ b/modules-available/exams/templates/page-add-edit-exam.html
@@ -110,7 +110,7 @@
<input type="hidden" name="action" value="save">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="examid" value="{{exam.examid}}">
- <button class="btn btn-success">{{lang_save}}</button>
+ <button class="btn btn-success" type="submit">{{lang_save}}</button>
</form>
<script type="application/javascript"><!--
@@ -206,5 +206,13 @@ document.addEventListener("DOMContentLoaded", function () {
end_time.change(startEndChanged);
$('#lecturelist').change(updateLectureInfo);
+ $('#tolleform').submit(function(ev) {
+ if ($('#locations option:selected').length === 0 && $('#locations option').length > 1) {
+ if (!confirm('{{lang_comfirmGlobalExam}}')) {
+ ev.preventDefault();
+ }
+ }
+ });
+
}, false);
// --></script>