commit | be2f9a01cec5db3c8bb9f7031903e5aaf40830e1 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Tue Jan 14 09:36:55 2025 +0100 |
committer | Akron <nils@diewald-online.de> | Tue Jan 14 09:49:05 2025 +0100 |
tree | 3aef8e640195ae0151dd49726ee56dae96432dad | |
parent | 176c46d448c5900c9c73a94ae7cd120aff4fc4c0 [diff] [blame] |
Fix hint helper alert Change-Id: I6e1ac9fa03f62bd25b1139764d727922a5f61c20
diff --git a/dev/js/src/hint/alert.js b/dev/js/src/hint/alert.js index 7847af2..f142890 100644 --- a/dev/js/src/hint/alert.js +++ b/dev/js/src/hint/alert.js
@@ -30,9 +30,12 @@ * Show alert. */ show : function (msg) { - this.active = true; const e = this._el; - e.textContent = msg; + if (msg !== undefined) + e.textContent = msg; + if (e.textContent == "") + return; + this.active = true; e.style.display = 'block'; },