Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit f597cfc

Browse files
added redo/undo to the demo
1 parent ef1b9cc commit f597cfc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

demo/core_demo.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
<a href="javascript:void(0);" class='tool' id="hide-lc">Teardown</a>
8787
<a href="javascript:void(0);" class='tool' id="show-lc">Setup</a>
8888
<a href="javascript:void(0);" class='tool' id="clear-lc">Clear</a>
89+
<a href="javascript:void(0);" class='tool' id="undo-lc">Undo</a>
90+
<a href="javascript:void(0);" class='tool' id="redo-lc">Redo</a>
8991
</div>
9092

9193
<div class="toolset">
@@ -204,6 +206,14 @@
204206
lc.clear();
205207
});
206208

209+
$("#undo-lc").click(function() {
210+
lc.undo();
211+
});
212+
213+
$("#redo-lc").click(function() {
214+
lc.redo();
215+
});
216+
207217
// Set up our own tools...
208218
tools = [
209219
{

0 commit comments

Comments
 (0)