mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2026-10-02 15:56:42 +02:00
* 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>
28 lines
615 B
JavaScript
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>" );
|
|
|
|
})();
|