diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 18:21:02 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 18:21:02 +0200 |
commit | d9d816bd9815527a9cff922fa58e06646b0e3115 (patch) | |
tree | dcdcfa63b4e951d888e9263029acadf843275cb1 /core/js/share.js | |
parent | 0bd17eff424333b36b431147412ffd0d604422a0 (diff) | |
download | nextcloud-server-d9d816bd9815527a9cff922fa58e06646b0e3115.tar.gz nextcloud-server-d9d816bd9815527a9cff922fa58e06646b0e3115.zip |
Unit tests for share dropdown with nested link share
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/share.js b/core/js/share.js index a6f29921480..aab41cf76da 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -620,6 +620,7 @@ OC.Share={ var file = $('#dir').val() + '/' + filename; } file = '/'+OC.currentUser+'/files'+file; + // TODO: use oc webroot ? var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+encodeURIComponent(file); } else { //TODO add path param when showing a link to file in a subfolder of a public link share @@ -630,6 +631,7 @@ OC.Share={ service=linkSharetype; } + // TODO: use oc webroot ? var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service='+service+'&t='+token; } |