diff options
author | prathamesh | 2014-07-11 14:14:19 +0530 |
---|---|---|
committer | prathamesh | 2014-07-11 14:14:19 +0530 |
commit | 0143710e78ae01bae78a3b760fc8410bc86a3b2b (patch) | |
tree | 59fbd9e0abd47b04e20727c502d8d7a509f9495e /testapp/static/exam/js/add_questionpaper.js | |
parent | e89f0b0e3a74195b3bce0f68c337ead9dc18a11e (diff) | |
download | online_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.tar.gz online_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.tar.bz2 online_test-0143710e78ae01bae78a3b760fc8410bc86a3b2b.zip |
Moved templates and static inside the app.
Diffstat (limited to 'testapp/static/exam/js/add_questionpaper.js')
-rw-r--r-- | testapp/static/exam/js/add_questionpaper.js | 25 |
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"; - } -} |