}
function get_next_update() {
- $.getScript("/eow/update", function(data, textStatus) {
- console.log(textStatus);
- return data;
- });
+ $.ajax({
+ url: "/eow/update",
+ dataType: "script",
+ success: function(data, textStatus) {
+ console.log(textStatus + " " + data);
+ },
+ error: function(xhr, textStatus, error) {
+ if (textStatus == "timeout") {
+ xhr.abort();
+ next();
+ }
+
+ console.error("HTTP status code: ", xhr.status);
+ }
+ });
}
function submit_cmdline(command) {