diff options
author | hardythe1 | 2012-03-28 11:55:34 +0530 |
---|---|---|
committer | hardythe1 | 2012-03-28 11:55:34 +0530 |
commit | 64b38d3365f1d65132942fce6e29fed7da076bba (patch) | |
tree | 15c07993620743f097cbf739e90fc3da59b957b1 /testapp/static/exam | |
parent | 246478f4ef75ae713e96a64d210bd3710bed3df9 (diff) | |
download | online_test-64b38d3365f1d65132942fce6e29fed7da076bba.tar.gz online_test-64b38d3365f1d65132942fce6e29fed7da076bba.tar.bz2 online_test-64b38d3365f1d65132942fce6e29fed7da076bba.zip |
minor changes
Diffstat (limited to 'testapp/static/exam')
-rw-r--r-- | testapp/static/exam/js/edit_quiz.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testapp/static/exam/js/edit_quiz.js b/testapp/static/exam/js/edit_quiz.js new file mode 100644 index 0000000..610a438 --- /dev/null +++ b/testapp/static/exam/js/edit_quiz.js @@ -0,0 +1,21 @@ +function form_load() +{ + var tags = document.getElementsByName('tags'); + + for (var i=0;i<tags.length;i++) + { + tags[i].id = tags[i].id + i; + } + + for(var i=0;i<tags.length;i++) + { + var tags_id = document.getElementById('id_tags'+i); + tags_id.setAttribute('class','ac_input'); + tags_id.setAttribute('autocomplete','off'); + + jQuery().ready(function() + { + jQuery("#id_tags" + i).autocomplete("/taggit_autocomplete_modified/json", { multiple: true }); + }); + } +} |