add function so you need to confirm clear whiteboard
This commit is contained in:
@@ -57,6 +57,15 @@ $(document).ready(function () {
|
||||
|
||||
// whiteboard clear button
|
||||
$("#whiteboardTrashBtn").click(function () {
|
||||
$("#whiteboardTrashBtnConfirm").show().focus();
|
||||
});
|
||||
|
||||
$("#whiteboardTrashBtnConfirm").focusout(function() {
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
$("#whiteboardTrashBtnConfirm").click(function () {
|
||||
$(this).hide();
|
||||
whiteboard.clearWhiteboard();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user