diff options
author | mahesh | 2017-08-24 23:26:46 +0530 |
---|---|---|
committer | mahesh | 2017-08-24 23:26:46 +0530 |
commit | 751dc83729e5bf57b2dd1a2798bb7b527a2e3584 (patch) | |
tree | fa1d11bd00ac9060cfa36056f62d1321455a4916 /yaksh/static | |
parent | 6ab383c02085936ecc20ffeb4b9f41ca642256c3 (diff) | |
parent | 9d5c4a01fd7856f1ef8793b75a9734324c254344 (diff) | |
download | online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.tar.gz online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.tar.bz2 online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.zip |
Merge branch 'master' of https://github.com/fossee/online_test into yaml_questions
Diffstat (limited to 'yaksh/static')
-rw-r--r-- | yaksh/static/yaksh/js/course.js | 31 |
1 files changed, 31 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;
+});
+
});
|