Skip to content

Commit c4e7d52

Browse files
committed
Modified the demo page to use the data-command attribute instead of the href
1 parent 635a846 commit c4e7d52

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

demo/index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
99
<script src="http://code.jquery.com/jquery-1.7.js" type="text/javascript"></script>
1010
<script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js" type="text/javascript"></script>
11-
-->
11+
-->
1212
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
1313
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js" type="text/javascript"></script>
14-
1514
<!-- Some custom library to enable 'taphold' events -->
1615
<script src="jquery-taphold/taphold.js" type="text/javascript"></script>
1716

@@ -217,20 +216,20 @@ <h3>Sample 2</h3>
217216
</div>
218217

219218
<ul id="options" style="display: none;">
220-
<li><a href="#action1"><span class="ui-icon custom-icon-firefox"></span>Action 1</a>
221-
<li><a href="#action2"><span class="ui-icon ui-icon-heart"></span>Action 2</a>
222-
<li class="ui-state-disabled"><a href="#action3">Action 3</a>
219+
<li data-command="action1"><a href="#"><span class="ui-icon custom-icon-firefox"></span>Action 1</a>
220+
<li data-command="action2"><a href="#"><span class="ui-icon ui-icon-heart"></span>Action 2</a>
221+
<li data-command="action3" class="ui-state-disabled"><a href="#">Action 3</a>
223222
<li>----
224223
<li><a>Extra</a>
225224
<ul>
226-
<li><a href="#action4">sub4</a>
227-
<li><a href="#action5">sub5</a>
225+
<li data-command="action4"><a href="#">sub4</a>
226+
<li data-command="action5"><a href="#">sub5</a>
228227
</ul>
229228
</ul>
230229

231230
<ul id="options2" class="ui-helper-hidden">
232-
<li><a href="#action2"><span class="ui-icon ui-icon-heart"></span>Action 2</a>
233-
<li class="ui-state-disabled"><a href="#action3">Action 3</a>
231+
<li data-command="action2"><a href="#action2"><span class="ui-icon ui-icon-heart"></span>Action 2</a>
232+
<li data-command="action3" class="ui-state-disabled"><a href="#">Action 3</a>
234233
</ul>
235234

236235
<h3>Sample 3</h3>

0 commit comments

Comments
 (0)