Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2017-04-28 17:53:44 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2017-05-02 13:55:16 +0300
commitefe40e50afad5f1668da1f9de9b941777962ffe2 (patch)
tree2ce86346ae31c50b4857b3836df9c06697164821 /js
parenta78f156d8acbd8a13a697c136bfd9401355178d1 (diff)
saving storage url
Diffstat (limited to 'js')
-rw-r--r--js/settings.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/js/settings.js b/js/settings.js
index 759e480..0effabc 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -39,7 +39,8 @@
};
if ($("#onlyofficeInternalUrl").val().length
- || $("#onlyofficeSecret").val().length) {
+ || $("#onlyofficeSecret").val().length
+ || $("#onlyofficeStorageUrl").val().length) {
advToogle(false);
}
@@ -51,11 +52,12 @@
var onlyofficeUrl = $("#onlyofficeUrl").val().trim();
if (!onlyofficeUrl.length) {
- $("#onlyofficeInternalUrl, #onlyofficeSecret").val("");
+ $("#onlyofficeInternalUrl, #onlyofficeStorageUrl, #onlyofficeSecret").val("");
}
- var onlyofficeSecret = $("#onlyofficeSecret:visible").val() || "";
var onlyofficeInternalUrl = ($("#onlyofficeInternalUrl:visible").val() || "").trim();
+ var onlyofficeStorageUrl = ($("#onlyofficeStorageUrl:visible").val() || "").trim();
+ var onlyofficeSecret = $("#onlyofficeSecret:visible").val() || "";
$.ajax({
method: "PUT",
@@ -63,12 +65,14 @@
data: {
documentserver: onlyofficeUrl,
documentserverInternal: onlyofficeInternalUrl,
+ storageUrl: onlyofficeStorageUrl,
secret: onlyofficeSecret
},
success: function onSuccess(response) {
if (response && response.documentserver != null) {
$("#onlyofficeUrl").val(response.documentserver);
$("#onlyofficeInternalUrl").val(response.documentserverInternal);
+ $("#onlyofficeStorageUrl").val(response.storageUrl);
$("#onlyofficeSecret").val(response.secret);
var message =