diff options
author | King | 2018-07-12 02:29:40 -0700 |
---|---|---|
committer | GitHub | 2018-07-12 02:29:40 -0700 |
commit | a850749942d163f9aedb19a1d19c4b8d7016745d (patch) | |
tree | 9b93d232ad093f595a5e62d22f5d2a6af9629602 /yaksh/static | |
parent | e3ad85ace916354ab96b23c1359ee72a6c2a740b (diff) | |
parent | 0e2910668a8b2c79dd422cd49813e263f117b00d (diff) | |
download | online_test-a850749942d163f9aedb19a1d19c4b8d7016745d.tar.gz online_test-a850749942d163f9aedb19a1d19c4b8d7016745d.tar.bz2 online_test-a850749942d163f9aedb19a1d19c4b8d7016745d.zip |
Merge pull request #489 from adityacp/search_tags_in_design_qp
Get questions using tags during question paper setup
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/question_paper_creation.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/question_paper_creation.js b/yaksh/static/yaksh/js/question_paper_creation.js index 430ec4b..86294b3 100644 --- a/yaksh/static/yaksh/js/question_paper_creation.js +++ b/yaksh/static/yaksh/js/question_paper_creation.js @@ -61,3 +61,12 @@ $(document).ready(function(){ }); });//document +function append_tag(tag){ + var tag_name = document.getElementById("question_tags"); + if (tag_name.value != null){ + tag_name.value = tag.value+", "+tag_name.value; + } + else{ + tag_name.value = tag.value; + } +}
\ No newline at end of file |