Files
jquery-validation-mirror/lib/jquery.js
Copilot e5097114bf Add jQuery 4.0.0 support (#2524)
* Initial plan

* Package: Add jQuery 4.0.0 support to peerDependencies

Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

* Build: Remove package-lock.json and update .gitignore

Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

* Chore: test on jquery 4.0.0 and mockjax 2.7.0

* Chore: bump jquery.simulate.js to 1.1.1

* Chore: replace $.trim

* Chore: fix test

* Chore: use pushStack instead of push

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>
Co-authored-by: bytestream <kieran@supportpal.com>
2026-01-22 15:36:46 +00:00

28 lines
580 B
JavaScript

(function() {
var parts = document.location.search.slice( 1 ).split( "&" ),
length = parts.length,
scripts = document.getElementsByTagName("script"),
src = scripts[ scripts.length - 1].src,
i = 0,
current,
version = "4.0.0",
file = "http://code.jquery.com/jquery-git.js";
for ( ; i < length; i++ ) {
current = parts[ i ].split( "=" );
if ( current[ 0 ] === "jquery" ) {
version = current[ 1 ];
break;
}
}
if (version != "git") {
file = src.replace(/jquery\.js$/, "jquery-" + version + ".js");
}
document.write( "<script src='" + file + "'></script>" );
})();