Skip to content

Commit

Permalink
Merge pull request #485 from gregh3269/fix/5.0.x-showcase-testing
Browse files Browse the repository at this point in the history
Fix unnecessary change and spelling.
  • Loading branch information
gregh3269 authored Mar 7, 2024
2 parents a8d7d1b + d765c8f commit e97be87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,6 @@
</s:form>
<img id="indicator" src="images/indicator.gif" alt="Loading..." style="display:none"/>

<script type="text/javascript">
$(document).ready( function() {
$.subscribe('removeErrors', function(event,data) {
$('.errorLabel').html('').removeClass('errorLabel');
$('#formerrors').html('');
});
});
function customValidation(form, errors) {
// List for errors
var list = $('#formerrors');
// Handle non field errors
if (errors.errors) {
$.each(errors.errors, function(index, value) {
list.append(value);
});
}
// Handle field errors
if (errors.fieldErrors) {
$.each(errors.fieldErrors, function(index, value) {
var elem = $('#'+index+'Error');
if(elem)
{
elem.html(value[0]);
elem.addClass('errorLabel');
}
});
}
}
</script>

<h4>Source Code</h4>

<sj:tabbedpanel id="localtabs" cssClass="list">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<sj:menuItem id="remoteformvalidationlink" href="%{urlformvalidation}" targets="content" title="Forms with Validation" />

<s:url var="urlformvalidationcust" action="form-validation-custome"/>
<sj:menuItem id="remoteformvalidationcustlink" href="%{urlformvalidationcust}" targets="content" title="Forms with Custome Validation" />
<sj:menuItem id="remoteformvalidationcustlink" href="%{urlformvalidationcust}" targets="content" title="Forms with Custom Validation" />

<s:url var="urlformtextarea" action="form-textarea"/>
<sj:menuItem id="remoteformtextarealink" href="%{urlformtextarea}" targets="content" title="AJAX Textarea" />
Expand Down

0 comments on commit e97be87

Please sign in to comment.