fix trash btn

This commit is contained in:
raphael 2020-03-19 21:07:46 +01:00
parent bc56e5b006
commit 0c041e0a51

View File

@ -102,14 +102,17 @@ $(document).ready(function () {
// whiteboard clear button
$("#whiteboardTrashBtn").click(function () {
$("#whiteboardTrashBtnConfirm").show().focus();
$(this).css({visibility: "hidden"});
});
$("#whiteboardTrashBtnConfirm").focusout(function () {
$("#whiteboardTrashBtnConfirm").mouseout(function () {
$(this).hide();
$("#whiteboardTrashBtn").css({visibility: "inherit"});
});
$("#whiteboardTrashBtnConfirm").click(function () {
$(this).hide();
$("#whiteboardTrashBtn").css({visibility: "inherit"});
whiteboard.clearWhiteboard();
});