Files
jquery-validation-mirror/lib/jquery.mockjax.js
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
615 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 = "2.7.0",
file = "../lib/jquery.mockjax-2.7.0.js";
for ( ; i < length; i++ ) {
current = parts[ i ].split( "=" );
if ( current[ 0 ] === "jquery.mockjax" ) {
version = current[ 1 ];
break;
}
}
if (version != "git" || version < "3") {
file = src.replace(/jquery.mockjax\.js$/, "jquery.mockjax-" + version + ".js");
}
document.write( "<script src='" + file + "'></script>" );
})();