mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Added the Orchard.Azure.MediaServices module.
This commit is contained in:
committed by
Sipke Schoorstra
parent
24f9225361
commit
bddaa8cc60
@@ -0,0 +1,38 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
(function (Azure) {
|
||||
(function (MediaServices) {
|
||||
(function (CloudVideoEdit) {
|
||||
function hasCorsSupport() {
|
||||
return 'withCredentials' in new XMLHttpRequest();
|
||||
}
|
||||
|
||||
$(function () {
|
||||
var corsSupported = hasCorsSupport();
|
||||
|
||||
if (corsSupported) {
|
||||
Orchard.Azure.MediaServices.CloudVideoEdit.initializeUploadDirect();
|
||||
} else {
|
||||
Orchard.Azure.MediaServices.CloudVideoEdit.initializeUploadProxied();
|
||||
}
|
||||
|
||||
var localStorage = window["localStorage"];
|
||||
var isCreating = $("#tabs").data("cloudvideo-iscreating");
|
||||
$("#tabs").tabs({
|
||||
activate: function () {
|
||||
if (localStorage && localStorage.setItem)
|
||||
localStorage.setItem("selectedCloudVideoTab", $("#tabs").tabs("option", "active"));
|
||||
},
|
||||
active: !isCreating && localStorage && localStorage.getItem ? localStorage.getItem("selectedCloudVideoTab") : null
|
||||
}).show();
|
||||
});
|
||||
})(MediaServices.CloudVideoEdit || (MediaServices.CloudVideoEdit = {}));
|
||||
var CloudVideoEdit = MediaServices.CloudVideoEdit;
|
||||
})(Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
var MediaServices = Azure.MediaServices;
|
||||
})(Orchard.Azure || (Orchard.Azure = {}));
|
||||
var Azure = Orchard.Azure;
|
||||
})(Orchard || (Orchard = {}));
|
||||
//# sourceMappingURL=cloudmedia-edit-cloudvideopart.js.map
|
||||
Reference in New Issue
Block a user