Upgrade to JQuery v3.5.1

This commit is contained in:
Tim Donohue
2020-05-20 15:25:06 -05:00
parent 7e0a0793a2
commit 7aadfec5b0
6 changed files with 10888 additions and 11 deletions

View File

@@ -250,7 +250,7 @@ Content-Type: application/json
</div>
</script>
<script src="browser/vendor/js/jquery-1.10.2.min.js"></script>
<script src="vendor/js/jquery-3.5.1.min.js"></script>
<script src="browser/vendor/js/underscore.js"></script>
<script src="browser/vendor/js/backbone.js"></script>
<script src="browser/vendor/js/uritemplates.js"></script>

View File

@@ -74,15 +74,17 @@ HAL.Http.Client.prototype.get = function(url) {
jqxhr: jqXHR,
headers: jqXHR.getAllResponseHeaders()
});
}
}).error(function (response) {
self.vent.trigger('fail-response', {jqxhr: jqxhr});
var contentTypeResponseHeader = jqxhr.getResponseHeader("content-type");
if (contentTypeResponseHeader != undefined
&& !contentTypeResponseHeader.startsWith("application/hal")
&& !contentTypeResponseHeader.startsWith("application/json")) {
downloadFile(url);
}});
},
error: function() {
self.vent.trigger('fail-response', { jqxhr: jqxhr });
var contentTypeResponseHeader = jqxhr.getResponseHeader("content-type");
if (contentTypeResponseHeader != undefined
&& !contentTypeResponseHeader.startsWith("application/hal")
&& !contentTypeResponseHeader.startsWith("application/json")) {
downloadFile(url);
}
}
});
};
HAL.Http.Client.prototype.request = function(opts) {

View File

@@ -50,7 +50,7 @@
margin-bottom: 10px;
}
</style>
<script src="browser/vendor/js/jquery-1.10.2.min.js"></script>
<script src="vendor/js/jquery-3.5.1.min.js"></script>
<script src="browser/vendor/js/bootstrap.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
</head>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long