Index: plugins/cerberusweb.core/templates/tickets/create/index.tpl.php =================================================================== --- plugins/cerberusweb.core/templates/tickets/create/index.tpl.php (revision 804) +++ plugins/cerberusweb.core/templates/tickets/create/index.tpl.php (working copy) @@ -35,6 +35,7 @@
+ @@ -155,5 +156,22 @@ YAHOO.util.Event.addListener(window,'load',function(e) { ajax.cbEmailPeek(null); }); + +var composeElms = document.getElementsByName("compose"); +var composeForm = composeElms[0]; + +YAHOO.util.Event.addListener(composeForm,'submit',function(e) { + requesterInput = document.getElementById("emailinput"); + trimValue = requesterInput.value.replace(/^\s+|\s+$/g,""); + if(trimValue.length == 0) { + validationDiv = document.getElementById("requester_span"); + validationDiv.innerHTML = "* You must enter a requester email address"; + + requesterInput.focus(); + requesterInput.select(); + YAHOO.util.Event.stopEvent(e); + } +}); + {/literal} - \ No newline at end of file +