Replace search and replace patterns

This commit is contained in:
Victor Dubiniuk 2014-10-16 23:23:28 +03:00
parent a7bd91233c
commit dc842ec045

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;
};
})();