Add redo button

This commit is contained in:
Jean-Benoist Leger 2020-04-17 17:47:19 +00:00
parent 9936faf469
commit 3c92ea5f08
2 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,9 @@
<button id="whiteboardUndoBtn" title="Undo your last step" type="button" class="whiteboardBtn">
<i class="fa fa-undo"></i>
</button>
<button id="whiteboardRedoBtn" title="Redo your last undo" type="button" class="whiteboardBtn">
<i class="fa fa-redo"></i>
</button>
</div>
<div class="btn-group">

View File

@ -256,6 +256,11 @@ $(document).ready(function () {
whiteboard.undoWhiteboardClick();
});
// redo button
$("#whiteboardRedoBtn").click(function () {
whiteboard.redoWhiteboardClick();
});
// switch tool
$(".whiteboardTool").click(function () {
$(".whiteboardTool").removeClass("active");