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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-10-04 00:17:36 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-10-04 00:17:36 +0400
commit7bee735877f0ddb73f1a4f4870a6bf11a5c0b7fa (patch)
tree81fbe5835181fc47be150342de48df122222a236 /core
parent51321526e2540de455b0757b884bc7967cf0eec8 (diff)
Show correct public link url for folders
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index e67b333dfc1..43688ba270e 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -306,13 +306,14 @@ OC.Share={
OC.Share.itemShares[OC.Share.SHARE_TYPE_LINK] = true;
$('#linkCheckbox').attr('checked', true);
var filename = $('tr').filterAttr('data-id', String(itemSource)).data('file');
+ var type = $('tr').filterAttr('data-id', String(itemSource)).data('type');
if ($('#dir').val() == '/') {
var file = $('#dir').val() + filename;
} else {
var file = $('#dir').val() + '/' + filename;
}
file = '/'+OC.currentUser+'/files'+file;
- var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&file='+file;
+ var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+file;
$('#linkText').val(link);
$('#linkText').show('blind');
$('#showPassword').show();