summaryrefslogtreecommitdiff
path: root/testapp/static/exam/js
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/static/exam/js')
-rw-r--r--testapp/static/exam/js/edit_quiz.js21
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 });
+ });
+ }
+}