Permalink
Browse files

Update Validation Engine for Date comparisons

  • Loading branch information...
1 parent e9e8293 commit b4ebac9a2e4d43e60cc987ea2807779cb97ad41b @sebastienheraud sebastienheraud committed Feb 13, 2017
@@ -119,7 +119,7 @@ public static function addValidation( $rules, $options, $id = '', &$config = arr
}
$doc->addStyleSheet( JUri::root( true ).'/media/cck/css/cck.validation-3.9.0.css' );
- $doc->addScript( JUri::root( true ).'/media/cck/js/cck.validation-3.9.0.min.js' );
+ $doc->addScript( JUri::root( true ).'/media/cck/js/cck.validation-3.11.0.min.js' );
$js = 'jQuery(document).ready(function($){ $.validationEngineLanguage.newLang({'.$rules.'}); $("#'.$id.'").validationEngine('.$options.'); });';
$doc->addScriptDeclaration( $js );
@@ -77,11 +77,11 @@ public static function addValidation( $rules, $options, $id = '', &$config = arr
if ( $app->input->get( 'tmpl' ) == 'raw' ) {
echo '<link rel="stylesheet" href="'.JUri::root( true ).'/media/cck/css/cck.validation-3.9.0.css" type="text/css" />';
- echo '<script src="'.JUri::root( true ).'/media/cck/js/cck.validation-3.9.0.min.js" type="text/javascript"></script>';
+ echo '<script src="'.JUri::root( true ).'/media/cck/js/cck.validation-3.11.0.min.js" type="text/javascript"></script>';
echo '<script type="text/javascript">'.$js.'</script>';
} else {
$doc->addStyleSheet( JUri::root( true ).'/media/cck/css/cck.validation-3.9.0.css' );
- $doc->addScript( JUri::root( true ).'/media/cck/js/cck.validation-3.9.0.min.js' );
+ $doc->addScript( JUri::root( true ).'/media/cck/js/cck.validation-3.11.0.min.js' );
$doc->addScriptDeclaration( $js );
}
}
Oops, something went wrong.

0 comments on commit b4ebac9

Please sign in to comment.