corrade-http-templates
/instantMessage/instantMessage.html |
@@ -71,6 +71,11 @@ |
// Function to send the message to an agent by passing it back through PHP. |
function sendInstantMessage(e) { |
var index = e.data.index; |
// If the parameters are empty, then do not send anything to the PHP script. |
if($.trim($("#firstname-" + index).val()) == '' || |
$.trim($("#lastname-" + index).val()) == '' || |
$.trim($("#message-" + index).val()) == '') |
return; |
$("#controls-" + index).animate({ |
opacity: 'hide' |
}, 'slow'); |