.
This commit is contained in:
+15
-12
@@ -146,18 +146,21 @@ async function retrievePacketList() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.done(function() {})
|
.done(function() {})
|
||||||
//.fail(function() {
|
.fail(function() {
|
||||||
// $.getJSON("packets", function(data) {
|
$.getJSON("packets", function(data) {
|
||||||
// if (data.hasOwnProperty("exams")) {
|
if (data.hasOwnProperty("exams")) {
|
||||||
// loadExamList(data);
|
loadExamList(data);
|
||||||
// } else {
|
} else {
|
||||||
// loadPacketList(data);
|
loadPacketList(data);
|
||||||
// }
|
}
|
||||||
// }).fail(function(jqXHR, textStatus, errorThrown) {
|
}).fail(function(jqXHR, textStatus, errorThrown) {
|
||||||
// console.log("No packet list available");
|
console.log("No packet list available");
|
||||||
// showLoginDialog();
|
if (jqXHR.status == 401 || jqXHR.status == 404) {
|
||||||
// });
|
$.notify("Unable to login", "error");
|
||||||
//})
|
}
|
||||||
|
//showLoginDialog();
|
||||||
|
});
|
||||||
|
})
|
||||||
.always(function() {});
|
.always(function() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user