summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorCruiseDevice2019-02-08 15:05:46 +0530
committerCruiseDevice2019-02-08 15:09:27 +0530
commitf9ab993d99567a9d8db8ec29db179cddfa1cca07 (patch)
treeb42707b65638b8d490c7841c85d5515072f39a4e /yaksh/static
parent51fc3bfee398da2781228a3b3bf32cb5ef3abc6b (diff)
downloadonline_test-f9ab993d99567a9d8db8ec29db179cddfa1cca07.tar.gz
online_test-f9ab993d99567a9d8db8ec29db179cddfa1cca07.tar.bz2
online_test-f9ab993d99567a9d8db8ec29db179cddfa1cca07.zip
Show alert on clicking Undo Changes button
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/requesthandler.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/requesthandler.js b/yaksh/static/yaksh/js/requesthandler.js
index 952de3a..7ccdef0 100644
--- a/yaksh/static/yaksh/js/requesthandler.js
+++ b/yaksh/static/yaksh/js/requesthandler.js
@@ -197,6 +197,11 @@ if (question_type == 'upload' || question_type == 'code') {
reset_editor = function() {
global_editor.editor.setValue(init_val);
global_editor.editor.clearHistory();
+ $('#undo_changes').modal('hide');
+ }
+
+ confirm = function(){
+ $("#undo_changes").modal("show");
}
});
function user_arranged_options(){