|
|
|
@ -111,11 +111,15 @@ function trackOpenAsync(routeTo, routeFrom, resolve, reject) {
|
|
|
|
|
},
|
|
|
|
|
function (xhr) {
|
|
|
|
|
app.dialog.close();
|
|
|
|
|
try {
|
|
|
|
|
var error = $.parseJSON(xhr.responseText);
|
|
|
|
|
if (error && typeof error.msg != 'undefined') {
|
|
|
|
|
app.dialog.alert(error.msg, "Error");
|
|
|
|
|
} else {
|
|
|
|
|
app.dialog.alert("A server or network error occurred.", "Error");
|
|
|
|
|
app.dialog.alert("There's a server or network problem. Check your Internet connection or try again later.", "Error");
|
|
|
|
|
}
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
app.dialog.alert("There's a server or network problem. Check your Internet connection or try again later.", "Error");
|
|
|
|
|
}
|
|
|
|
|
reject();
|
|
|
|
|
}, "GET");
|
|
|
|
|