Merge pull request #382 from owncloud/fix-381

Allow sharing with link again
This commit is contained in:
VicDeo 2014-10-16 23:30:40 +03:00
commit 56bd1f537a

View File

@ -471,7 +471,7 @@ var documentsMain = {
var target = OC.Share.showLink;
OC.Share.showLink = function() {
var r = target.apply( this, arguments );
$('#linkText').val( $('#linkText').val().replace('service=files', 'service=documents') );
$('#linkText').val( $('#linkText').val().replace('index.php/s/', 'public.php?service=documents&t=') );
return r;
};
})();