Bug 1043000 - dismiss error notification before trying to connect. r=jryans

This commit is contained in:
Paul Rouget 2014-07-24 02:14:00 +02:00
parent bbd449052e
commit a75d4f3e3d

View File

@ -272,6 +272,11 @@ let UI = {
nbox.PRIORITY_WARNING_LOW, buttons);
},
dismissErrorNotification: function() {
let nbox = document.querySelector("#notificationbox");
nbox.removeAllNotifications(true);
},
/********** RUNTIME **********/
updateRuntimeList: function() {
@ -326,6 +331,7 @@ let UI = {
let r = runtime;
panelItemNode.addEventListener("click", () => {
this.hidePanels();
this.dismissErrorNotification();
this.connectToRuntime(r);
}, true);
}