diff options
author | mahesh | 2017-11-23 01:11:59 +0530 |
---|---|---|
committer | mahesh | 2017-11-23 01:25:11 +0530 |
commit | ae4e2dad126535cda41a7b4a05fdb247f9cdf737 (patch) | |
tree | 4f0049a04e1645a0f5fd48e8d275d45a045aba74 /yaksh/templates/exam.html | |
parent | 7e2972786599fc23c436e593fcc236defd93c88c (diff) | |
download | online_test-ae4e2dad126535cda41a7b4a05fdb247f9cdf737.tar.gz online_test-ae4e2dad126535cda41a7b4a05fdb247f9cdf737.tar.bz2 online_test-ae4e2dad126535cda41a7b4a05fdb247f9cdf737.zip |
Render error output with django template instead of javascript
Diffstat (limited to 'yaksh/templates/exam.html')
-rw-r--r-- | yaksh/templates/exam.html | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html index f722c5f..fede185 100644 --- a/yaksh/templates/exam.html +++ b/yaksh/templates/exam.html @@ -33,15 +33,6 @@ </nav><!-- /.navbar --> {% endblock %} {% block content %} - <script> - $(document).ready(function() { - var ele = document.getElementById('error_panel') - if (ele) { - ele.scrollIntoView(true); - window.scrollBy(0, -15); - } - }); - </script> <div class="container-fluid"> <div class="col-sm-3 col-md-2 sidebar"> <p> Question Navigator </p> @@ -80,13 +71,12 @@ {% block main %} {% endblock %} </div> + </div> <br/> + </div> {% if question.type == 'code' or question.type == 'upload' %} - <div class="row" id="error_panel"> - </div> - </div> + <div class="row" id="error_panel"></div> {% endif %} - </div> </div> </div> </div> |