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 762
762
} else {
763
763
var findScriptPathAndLoadModules = function ( ) {
764
764
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 ;
775
770
} ) ;
776
771
777
772
if ( foundPath !== false ) {
You can’t perform that action at this time.
0 commit comments