mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge commit 'fcbbaffce15ad99a8095616f55183ca39e0e16a7' as 'lib/jquery-bootgrid'
This commit is contained in:
53
lib/jquery-bootgrid/test/index.html
Normal file
53
lib/jquery-bootgrid/test/index.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery Bootgrid Test Suite</title>
|
||||
<link rel="stylesheet" href="qunit/qunit-1.11.0.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="qunit-header">
|
||||
<a href="http://rstaib.github.io/jquery-steps">jQuery Bootgrid Plugin</a> Test Suite
|
||||
</h1>
|
||||
<div id="qunit-banner"></div>
|
||||
<div id="qunit-testrunner-toolbar"><span>jQuery Versions: <input id="version-191" name="version" type="radio" value="1.9.1" /><label for="version-191">jQuery 1.9.1</label>
|
||||
<input id="version-1102" name="version" type="radio" value="1.10.2" /><label for="version-1102">jQuery 1.10.2</label>
|
||||
<input id="version-1111" name="version" type="radio" value="1.11.1" /><label for="version-1111">jQuery 1.11.1</label>
|
||||
<input id="version-latest" name="version" type="radio" value="latest" /><label for="version-latest">jQuery Latest (git)</label></span></div>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests"></ol>
|
||||
<div id="qunit-fixture">
|
||||
</div>
|
||||
<script src="qunit/qunit-1.11.0.js"></script>
|
||||
<script src="tests-internal.js"></script>
|
||||
<script src="tests-rendering.js"></script>
|
||||
<script src="tests-extensions.js"></script>
|
||||
<script src="jquery.js"></script>
|
||||
<script src="../src/internal.js"></script>
|
||||
<script src="../src/extensions.js"></script>
|
||||
<script>
|
||||
$(function ()
|
||||
{
|
||||
$("input[name='version']").click(function ()
|
||||
{
|
||||
location.href = "?version=" + $(this).val();
|
||||
});
|
||||
|
||||
var versionPattern = /^[\?|\&]{1}version=(\d{1,2}\.\d{1,2}\.\d{1,2}|latest)/,
|
||||
version = versionPattern.exec(location.search),
|
||||
defaultVersion = "1.11.1";
|
||||
|
||||
if (version != null && version.length > 0)
|
||||
{
|
||||
version = version[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
version = defaultVersion;
|
||||
}
|
||||
|
||||
$("input[value='" + version + "']").attr("checked", "checked");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user