Skip to content

Commit d84fb5d

Browse files
committed
Added sample data
1 parent 95f72de commit d84fb5d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

demos/assets/sample.json

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

demos/demo.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>jQuery Filter JSON Plugin</title>
77
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
88
<script type="text/javascript" src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
9-
<script type="text/javascript" src="../src/filterJSON.plugin.min.js"></script>
9+
<script type="text/javascript" src="../src/filterJSON.plugin.js"></script>
1010
<script type="text/javascript" src="assets/sample.json"></script>
1111
<link rel="stylesheet" type="text/css" href="assets/style.css" />
1212
</head>
@@ -24,6 +24,10 @@
2424
<td>&nbsp;</td>
2525
<td><input type="radio" name="sample-select" value="sample2">Sample2</td>
2626
</tr>
27+
<tr>
28+
<td>&nbsp;</td>
29+
<td><input type="radio" name="sample-select" value="sample3">Sample3</td>
30+
</tr>
2731
</table>
2832
</td>
2933
<td class="input-field text inputBorder">
@@ -91,7 +95,7 @@
9195
});
9296

9397
// selecting the first json sample
94-
$( ":input[name='sample-select']:first" ).click();
98+
$( ":input[name='sample-select']:last" ).click();
9599

96100
$( "#filterJSON" ).click(function() {
97101
var startTime = new Date().getTime(),

0 commit comments

Comments
 (0)