corrade-http-templates – Diff between revs 1 and 4

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 4
Line 69... Line 69...
69 } 69 }
Line 70... Line 70...
70   70  
71 // Function to send the message to an agent by passing it back through PHP. 71 // Function to send the message to an agent by passing it back through PHP.
72 function sendInstantMessage(e) { 72 function sendInstantMessage(e) {
-   73 var index = e.data.index;
-   74 // If the parameters are empty, then do not send anything to the PHP script.
-   75 if($.trim($("#firstname-" + index).val()) == '' ||
-   76 $.trim($("#lastname-" + index).val()) == '' ||
-   77 $.trim($("#message-" + index).val()) == '')
73 var index = e.data.index; 78 return;
74 $("#controls-" + index).animate({ 79 $("#controls-" + index).animate({
75 opacity: 'hide' 80 opacity: 'hide'
76 }, 'slow'); 81 }, 'slow');
77 $.ajax({ 82 $.ajax({