Proper public link is sharing dropdown
This commit is contained in:
parent
93c774d81e
commit
e33d481e78
@ -16,7 +16,7 @@ class SessionController extends Controller{
|
|||||||
|
|
||||||
public static function joinAsGuest($args){
|
public static function joinAsGuest($args){
|
||||||
$uid = self::preDispatchGuest();
|
$uid = self::preDispatchGuest();
|
||||||
$uid = substr(@$_POST['name'], 0, 16) . $uid;
|
$uid = substr(@$_POST['name'], 0, 16) .' '. $uid;
|
||||||
$token = @$args['token'];
|
$token = @$args['token'];
|
||||||
$file = File::getByShareToken($token);
|
$file = File::getByShareToken($token);
|
||||||
self::join($uid, $file);
|
self::join($uid, $file);
|
||||||
|
@ -200,6 +200,15 @@ var documentsMain = {
|
|||||||
if (OC.Share.droppedDown) {
|
if (OC.Share.droppedDown) {
|
||||||
OC.Share.hideDropDown();
|
OC.Share.hideDropDown();
|
||||||
} else {
|
} else {
|
||||||
|
(function() {
|
||||||
|
var target = OC.Share.showLink;
|
||||||
|
OC.Share.showLink = function() {
|
||||||
|
var r = target.apply( this, arguments );
|
||||||
|
$('#linkText').val( $('#linkText').val().replace('service=files', 'service=documents') );
|
||||||
|
return r;
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
||||||
OC.Share.showDropDown(
|
OC.Share.showDropDown(
|
||||||
'file',
|
'file',
|
||||||
parent.location.hash.replace(/\W*/g, ''),
|
parent.location.hash.replace(/\W*/g, ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user