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"> <button id="whiteboardUndoBtn" title="Undo your last step" type="button" class="whiteboardBtn">
<i class="fa fa-undo"></i> <i class="fa fa-undo"></i>
</button> </button>
<button id="whiteboardRedoBtn" title="Redo your last undo" type="button" class="whiteboardBtn">
<i class="fa fa-redo"></i>
</button>
</div> </div>
<div class="btn-group"> <div class="btn-group">

View File

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