Hi all,
when creating (editting) an issue in JIRA I need to check some fields if they are not empty or not selected and if so, stop the submission of the creating/editting the issue so that the user can fill in the fields. The problem is that if I try to use this style of the code
AJS.$('form').submit(function(){
if(!someValidation){
return false;
}
}
The handling of the event goes well the problem is that even if the handling is executed and the propagation of the event should be stopped by the jQuery the submission still executes even though it enters the "if" and returns false. Is this some feature of JIRA 5.x where in popup window (create/edit screen) is impossible to do it this way? If so is there some workaround to stop submission or is this not allowed in JIRA 5.x at all?
Thanks for any info in advance.