diff options
author | mahesh | 2017-09-01 16:43:11 +0530 |
---|---|---|
committer | mahesh | 2017-09-01 16:43:11 +0530 |
commit | e8eca566edde7b330a92af91541cee5d348a0326 (patch) | |
tree | a996fa48ebdfd56b14451dc57d413f03f25a4237 /yaksh/static | |
parent | f308f6e4ffb3fefc42552570fd8cf852d643cd6f (diff) | |
parent | 9e0f737c25a5156aa884d27357af0aef1145c4b7 (diff) | |
download | online_test-e8eca566edde7b330a92af91541cee5d348a0326.tar.gz online_test-e8eca566edde7b330a92af91541cee5d348a0326.tar.bz2 online_test-e8eca566edde7b330a92af91541cee5d348a0326.zip |
Merge branch 'master' of https://github.com/fossee/online_test into add_tag_search
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/course.js | 31 | ||||
-rw-r--r-- | yaksh/static/yaksh/js/show_question.js | 4 |
2 files changed, 35 insertions, 0 deletions
diff --git a/yaksh/static/yaksh/js/course.js b/yaksh/static/yaksh/js/course.js index 5b79e68..8fb2773 100644 --- a/yaksh/static/yaksh/js/course.js +++ b/yaksh/static/yaksh/js/course.js @@ -35,4 +35,35 @@ $(".reject").change( function(){ });
}
});
+
+$(function() {
+ $('textarea#email_body').froalaEditor({
+ heightMin: 200,
+ heightMax: 200
+ })
+ });
+
+$("#send_mail").click(function(){
+ var subject = $("#subject").val();
+ var body = $('#email_body').val();
+ var status = false;
+ var selected = [];
+ $('#reject input:checked').each(function() {
+ selected.push($(this).attr('value'));
+ });
+
+ if (subject == '' || body == ''){
+ $("#error_msg").html("Please enter mail details");
+ $("#dialog").dialog();
+ }
+ else if (selected.length == 0){
+ $("#error_msg").html("Please select atleast one user");
+ $("#dialog").dialog();
+ }
+ else {
+ status = true;
+ }
+ return status;
+});
+
});
diff --git a/yaksh/static/yaksh/js/show_question.js b/yaksh/static/yaksh/js/show_question.js index a154558..e6825a0 100644 --- a/yaksh/static/yaksh/js/show_question.js +++ b/yaksh/static/yaksh/js/show_question.js @@ -47,3 +47,7 @@ function append_tag(tag){ tag_name.value = tag.value; } } +$(document).ready(function() + { + $("#questions-table").tablesorter({sortList: [[0,0], [4,0]]}); + }); |