diff options
Diffstat (limited to 'lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php')
-rw-r--r-- | lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php index 5e1387ac853..33ca3be94aa 100644 --- a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php +++ b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php @@ -67,14 +67,15 @@ class ExternalShareMenuAction extends SimpleMenuAction { */ public function render(): string { return '<li>' . - '<a id="save-external-share" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . - '<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' . - '<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' . - '<form class="save-form hidden" action="#">' . - '<input type="text" id="remote_address" placeholder="user@yourNextcloud.org">' . - '<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' . - '</form>' . - '</a>' . + ' <button id="save-external-share" class="icon ' . Util::sanitizeHTML($this->getIcon()) . '" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . Util::sanitizeHTML($this->getLabel()) . '</button>' . + '</li>' . + '<li id="external-share-menu-item" class="hidden">' . + ' <span class="menuitem">' . + ' <form class="save-form" action="#">' . + ' <input type="text" id="remote_address" placeholder="user@yourNextcloud.org">' . + ' <input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' . + ' </form>' . + ' </span>' . '</li>'; } } |