Subversion Repositories SmartDukaan

Rev

Rev 4163 | Rev 4241 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4163 Rev 4164
Line 79... Line 79...
79
 
79
 
80
    $('form#mail-form').live(
80
    $('form#mail-form').live(
81
            'submit',
81
            'submit',
82
            function() {
82
            function() {
83
            	var body = $('#mail-body').val().trim();
83
            	var body = $('#mail-body').val().trim();
84
            	console.log(body);
-
 
85
                if (body == null || body == '') {
84
                if (body == null || body == '') {
86
                	alert('Please specify body of the mail');
85
                	alert('Please specify body of the mail');
87
                }
86
                }
88
                else {
87
                else {
89
                	var ticketId = $('#update-ticket-form').attr('ticketId');
88
                    var ticketId = $('#update-ticket-form').attr('ticketId');
90
                    updateTicket("infopane", ticketId, $(this).serialize() + '&'
89
                    updateTicket("infopane", ticketId, $(this).serialize() + '&'
91
                            + $('#update-ticket-form').serialize());
90
                            + $('#update-ticket-form').serialize());
92
                    $.colorbox.close();
91
                    $.colorbox.close();
93
                }
92
                }
94
 
93