diff --git a/js/activity.js b/js/activity.js index 450b571bcf..2622ecff2c 100644 --- a/js/activity.js +++ b/js/activity.js @@ -4907,7 +4907,7 @@ class Activity { } }; - this.textMsg = (msg) => { + this.textMsg = (msg,duration = _MSGTIMEOUT_) => { if (this.msgTimeoutID !== null) { clearTimeout(this.msgTimeoutID); this.msgTimeoutID = null; @@ -4925,7 +4925,7 @@ class Activity { this.msgTimeoutID = setTimeout(() => { that.printText.classList.remove("show"); that.msgTimeoutID = null; - }, _MSGTIMEOUT_); + }, duration); }; this.errorMsg = (msg, blk, text, timeout) => { diff --git a/js/piemenus.js b/js/piemenus.js index 84744f8a97..0dfb5da74f 100644 --- a/js/piemenus.js +++ b/js/piemenus.js @@ -3507,7 +3507,7 @@ const piemenuBlockContext = (block) => { docById("contextWheelDiv").style.display = "none"; // prompting a notification on deleting any block activity.textMsg( - _("You can restore deleted blocks from the trash with the Restore From Trash button.") + _("You can restore deleted blocks from the trash with the Restore From Trash button."), 3000 ); };