Subversion Repositories SmartDukaan

Rev

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

Rev 4142 Rev 4163
Line 78... Line 78...
78
    });
78
    });
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();
-
 
84
            	console.log(body);
-
 
85
                if (body == null || body == '') {
-
 
86
                	alert('Please specify body of the mail');
-
 
87
                }
-
 
88
                else {
83
                var ticketId = $('#update-ticket-form').attr('ticketId');
89
                	var ticketId = $('#update-ticket-form').attr('ticketId');
84
                updateTicket("infopane", ticketId, $(this).serialize() + '&'
90
                    updateTicket("infopane", ticketId, $(this).serialize() + '&'
85
                        + $('#update-ticket-form').serialize());
91
                            + $('#update-ticket-form').serialize());
86
                $.colorbox.close();
92
                    $.colorbox.close();
-
 
93
                }
-
 
94
 
87
                return false;
95
                return false;
88
            });
96
            });
89
 
97
 
90
    $('form#escalation-form').live(
98
    $('form#escalation-form').live(
91
            'submit',
99
            'submit',