always add error dialog class
This commit is contained in:
parent
8895e99063
commit
f9682e3fb6
1 changed files with 3 additions and 2 deletions
|
@ -41,6 +41,7 @@ pandora.ui.errorDialog = function(data) {
|
||||||
title: Ox.toTitleCase(data.status.text),
|
title: Ox.toTitleCase(data.status.text),
|
||||||
width: 368
|
width: 368
|
||||||
})
|
})
|
||||||
|
.addClass('OxErrorDialog');
|
||||||
.open();
|
.open();
|
||||||
} else {
|
} else {
|
||||||
// 0 (timeout) or 500 (error)
|
// 0 (timeout) or 500 (error)
|
||||||
|
@ -49,7 +50,7 @@ pandora.ui.errorDialog = function(data) {
|
||||||
// on window unload, pending request will time out, so
|
// on window unload, pending request will time out, so
|
||||||
// in order to keep the dialog from appearing, delay it
|
// in order to keep the dialog from appearing, delay it
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if ($('.OxErrorDialog').length ==0 && !pandora.isUnloading) {
|
if ($('.OxErrorDialog').length == 0 && !pandora.isUnloading) {
|
||||||
that = Ox.Dialog({
|
that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
|
@ -83,9 +84,9 @@ pandora.ui.errorDialog = function(data) {
|
||||||
title: 'Server ' + Ox.toTitleCase(error),
|
title: 'Server ' + Ox.toTitleCase(error),
|
||||||
width: 368
|
width: 368
|
||||||
})
|
})
|
||||||
|
.addClass('OxErrorDialog');
|
||||||
.open();
|
.open();
|
||||||
}
|
}
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
that.addClass('OxErrorDialog');
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue