From f9682e3fb65de639df4181f1b1d04a78b8d97693 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 26 Jan 2012 12:24:07 +0530 Subject: [PATCH] always add error dialog class --- static/js/pandora/errorDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/errorDialog.js b/static/js/pandora/errorDialog.js index 31dd2ee51..43641bcec 100644 --- a/static/js/pandora/errorDialog.js +++ b/static/js/pandora/errorDialog.js @@ -41,6 +41,7 @@ pandora.ui.errorDialog = function(data) { title: Ox.toTitleCase(data.status.text), width: 368 }) + .addClass('OxErrorDialog'); .open(); } else { // 0 (timeout) or 500 (error) @@ -49,7 +50,7 @@ pandora.ui.errorDialog = function(data) { // on window unload, pending request will time out, so // in order to keep the dialog from appearing, delay it setTimeout(function() { - if ($('.OxErrorDialog').length ==0 && !pandora.isUnloading) { + if ($('.OxErrorDialog').length == 0 && !pandora.isUnloading) { that = Ox.Dialog({ buttons: [ Ox.Button({ @@ -83,9 +84,9 @@ pandora.ui.errorDialog = function(data) { title: 'Server ' + Ox.toTitleCase(error), width: 368 }) + .addClass('OxErrorDialog'); .open(); } }, 250); } - that.addClass('OxErrorDialog'); };