Skip to content

Commit

Permalink
Small improvement for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Oct 9, 2012
1 parent 06482ff commit b69cf7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 63 deletions.
9 changes: 1 addition & 8 deletions inc/classes/meta-box.php
Expand Up @@ -287,14 +287,7 @@ public function show()
else
{
var tempOptions = jQuery.parseJSON( \'' . json_encode( $this->validation ) . '\' );
jQuery.each( tempOptions.rules, function( k, v )
{
rwmb.validationOptions.rules[k] = v;
});
jQuery.each( tempOptions.messages, function( k, v )
{
rwmb.validationOptions.messages[k] = v;
});
jQuery.extend( true, rwmb.validationOptions, tempOptions );
};
</script>
';
Expand Down

0 comments on commit b69cf7e

Please sign in to comment.