summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js/add_questionpaper.js
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/static/exam/js/add_questionpaper.js')
-rw-r--r--testapp/static/exam/js/add_questionpaper.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/testapp/static/exam/js/add_questionpaper.js b/testapp/static/exam/js/add_questionpaper.js
deleted file mode 100644
index 6185dd5..0000000
--- a/testapp/static/exam/js/add_questionpaper.js
+++ /dev/null
@@ -1,25 +0,0 @@
-function load_data()
-{
- var url_root = document.getElementById('url_root').value;
- var value = document.getElementById('mode').value;
- var pathArray = window.location.pathname.split( '/' );
- length = pathArray.length;
- var digit = parseInt(pathArray[length-2]);
-
- if (! isNaN(digit) && value == 'Automatic')
- {
- window.location = url_root + "/exam/manage/designquestionpaper/automatic/" + digit;
- }
- else if(!isNaN(digit) && value == 'Manual')
- {
- window.location = url_root + "/exam/manage/designquestionpaper/manual/" + digit;
- }
- else if(value == 'Automatic')
- {
- window.location = window.location.pathname + "automatic";
- }
- else if( value == 'Manual')
- {
- window.location = window.location.pathname + "manual";
- }
-}