diff --git a/js/main.js b/js/main.js index 6651e44..641863d 100644 --- a/js/main.js +++ b/js/main.js @@ -142,23 +142,22 @@ async function retrievePacketList() { error: function(httpObj, textStatus) { if (httpObj.status == 401 || httpObj.status == 404) { $.notify("Unable to login", "error"); - } }, }) .done(function() {}) - .fail(function() { - $.getJSON("packets", function(data) { - if (data.hasOwnProperty("exams")) { - loadExamList(data); - } else { - loadPacketList(data); - } - }).fail(function(jqXHR, textStatus, errorThrown) { - console.log("No packet list available"); - showLoginDialog(); - }); - }) + //.fail(function() { + // $.getJSON("packets", function(data) { + // if (data.hasOwnProperty("exams")) { + // loadExamList(data); + // } else { + // loadPacketList(data); + // } + // }).fail(function(jqXHR, textStatus, errorThrown) { + // console.log("No packet list available"); + // showLoginDialog(); + // }); + //}) .always(function() {}); }