]> git.proxmox.com Git - novnc-pve.git/commitdiff
pve_show_msg: allow undefined value for parameter 'permanent'
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 06:19:32 +0000 (08:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 06:19:32 +0000 (08:19 +0200)
pveui.js

index 98d5a3954b75ddc70204c780b5f3e95c56c491c8..eefed849706d488b3b9fce3dff9e2ff93071fc24 100644 (file)
--- a/pveui.js
+++ b/pveui.js
@@ -129,7 +129,7 @@ pve_show_msg: function(klass, msg, permanant) {
     $D('noVNC-control-bar').setAttribute("class", klass);
     var oldmsg = $D('noVNC_status').innerHTML;
     $D('noVNC_status').innerHTML = msg;
-    if (permanent) return;
+    if (typeof permanent !== 'undefined' && permanent) return;
 
     setTimeout(function() {
        var curmsg = $D('noVNC_status').innerHTML;