diff options
author | Prabhu Ramachandran | 2017-09-01 17:17:58 +0530 |
---|---|---|
committer | GitHub | 2017-09-01 17:17:58 +0530 |
commit | acb0cf85839eb090041a2606dddc3b1e29e25d16 (patch) | |
tree | 3dbbf48a20574c68c62c5a26c268c933d5e27188 /yaksh/static | |
parent | a9cc03b372071962a009737416b281738b82572f (diff) | |
parent | e8eca566edde7b330a92af91541cee5d348a0326 (diff) | |
download | online_test-acb0cf85839eb090041a2606dddc3b1e29e25d16.tar.gz online_test-acb0cf85839eb090041a2606dddc3b1e29e25d16.tar.bz2 online_test-acb0cf85839eb090041a2606dddc3b1e29e25d16.zip |
Merge pull request #302 from maheshgudi/add_tag_search
Search questions using tag
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/show_question.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/yaksh/static/yaksh/js/show_question.js b/yaksh/static/yaksh/js/show_question.js index e7cd817..e6825a0 100644 --- a/yaksh/static/yaksh/js/show_question.js +++ b/yaksh/static/yaksh/js/show_question.js @@ -37,7 +37,17 @@ function confirm_edit(frm) else return true; } + +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; + } +} $(document).ready(function() { $("#questions-table").tablesorter({sortList: [[0,0], [4,0]]}); - });
\ No newline at end of file + }); |