|
@@ -204,7 +204,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
*/
|
|
*/
|
|
- var sharCurrentEditingUUID = "";
|
|
|
|
|
|
+ var shareCurrentEditingUUID = "";
|
|
var shareingFileData = {};
|
|
var shareingFileData = {};
|
|
var darkTheme = false;
|
|
var darkTheme = false;
|
|
var initialized = false;
|
|
var initialized = false;
|
|
@@ -272,7 +272,7 @@
|
|
});
|
|
});
|
|
$.ajax({
|
|
$.ajax({
|
|
url: relpath + "../system/file_system/share/edit",
|
|
url: relpath + "../system/file_system/share/edit",
|
|
- data: {uuid: sharCurrentEditingUUID, mode: shareingFileData.shareMode},
|
|
|
|
|
|
+ data: {uuid: shareCurrentEditingUUID, mode: shareingFileData.shareMode},
|
|
success: function(data){
|
|
success: function(data){
|
|
if (data.error !== undefined){
|
|
if (data.error !== undefined){
|
|
alert(data.error);
|
|
alert(data.error);
|
|
@@ -359,7 +359,7 @@
|
|
}else{
|
|
}else{
|
|
console.log(data);
|
|
console.log(data);
|
|
updateShareLinkInfo(data.UUID);
|
|
updateShareLinkInfo(data.UUID);
|
|
- sharCurrentEditingUUID = data.UUID;
|
|
|
|
|
|
+ shareCurrentEditingUUID = data.UUID;
|
|
$(".shareoption").each(function(){
|
|
$(".shareoption").each(function(){
|
|
if ($(this)[0].value != data.Permission){
|
|
if ($(this)[0].value != data.Permission){
|
|
$(this)[0].checked = false;
|
|
$(this)[0].checked = false;
|
|
@@ -414,14 +414,14 @@
|
|
}
|
|
}
|
|
|
|
|
|
function removeSharing(){
|
|
function removeSharing(){
|
|
- if (sharCurrentEditingUUID == ""){
|
|
|
|
|
|
+ if (shareCurrentEditingUUID == ""){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
//The target file to remove
|
|
//The target file to remove
|
|
$.ajax({
|
|
$.ajax({
|
|
url: relpath + "../system/file_system/share/delete",
|
|
url: relpath + "../system/file_system/share/delete",
|
|
- data: {path: shareingFileData.filepath},
|
|
|
|
|
|
+ data: {uuid: shareCurrentEditingUUID},
|
|
success: function(data){
|
|
success: function(data){
|
|
if (data.error !== undefined){
|
|
if (data.error !== undefined){
|
|
alert(data.error);
|
|
alert(data.error);
|
|
@@ -488,7 +488,7 @@
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
url: relpath + "../system/file_system/share/edit",
|
|
url: relpath + "../system/file_system/share/edit",
|
|
- data: {uuid: sharCurrentEditingUUID, mode: newPermission},
|
|
|
|
|
|
+ data: {uuid: shareCurrentEditingUUID, mode: newPermission},
|
|
success: function(data){
|
|
success: function(data){
|
|
if (data.error !== undefined){
|
|
if (data.error !== undefined){
|
|
alert(data.error);
|
|
alert(data.error);
|
|
@@ -511,7 +511,7 @@
|
|
port = "";
|
|
port = "";
|
|
}
|
|
}
|
|
var shareURL = protocol + window.location.hostname + port + "/share/" + uuid;
|
|
var shareURL = protocol + window.location.hostname + port + "/share/" + uuid;
|
|
- sharCurrentEditingUUID = uuid;
|
|
|
|
|
|
+ shareCurrentEditingUUID = uuid;
|
|
fileSharingURL = shareURL;
|
|
fileSharingURL = shareURL;
|
|
new QRCode(document.getElementById("qrcode"), shareURL);
|
|
new QRCode(document.getElementById("qrcode"), shareURL);
|
|
$("#sharelink").text(shareURL);
|
|
$("#sharelink").text(shareURL);
|