File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 762762 } else {
763763 var findScriptPathAndLoadModules = function ( ) {
764764 var foundPath = false ;
765- $ ( 'script' ) . each ( function ( ) {
766- if ( this . src ) {
767- var scriptName = this . src . substr ( this . src . lastIndexOf ( '/' ) + 1 , this . src . length ) ;
768- if ( scriptName . indexOf ( 'jquery.form-validator.js' ) > - 1 || scriptName . indexOf ( 'jquery.form-validator.min.js' ) > - 1 ) {
769- foundPath = this . src . substr ( 0 , this . src . lastIndexOf ( '/' ) ) + '/' ;
770- if ( foundPath == '/' )
771- foundPath = '' ;
772- return false ;
773- }
774- }
765+ $ ( 'script[src*="form-validator"]' ) . each ( function ( ) {
766+ foundPath = this . src . substr ( 0 , this . src . lastIndexOf ( '/' ) ) + '/' ;
767+ if ( foundPath == '/' )
768+ foundPath = '' ;
769+ return false ;
775770 } ) ;
776771
777772 if ( foundPath !== false ) {
You can’t perform that action at this time.
0 commit comments