diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-04-05 13:11:55 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-04-05 13:11:55 +0200 |
commit | 2e60f91ab159e51b8b39788077178cf96e8cfa0f (patch) | |
tree | e031b269ee325a078c745e6fa2a4a0a42db6ba02 /lib/public/AppFramework | |
parent | 30e76f9f14d901025e245d9900b7ca1d3ff168ad (diff) | |
download | nextcloud-server-2e60f91ab159e51b8b39788077178cf96e8cfa0f.tar.gz nextcloud-server-2e60f91ab159e51b8b39788077178cf96e8cfa0f.zip |
Move external share saving to template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r-- | lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php index 079ae6ea779..d22565e8178 100644 --- a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php +++ b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php @@ -55,18 +55,14 @@ class ExternalShareMenuAction extends SimpleMenuAction { public function render(): string { return '<li>' . - '<a id="save" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' . + '<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>' . - '</a>' . - '</li>' . - '<li>' . - '<span class="menuitem">' . - '<form class="save-form" action="#">' . + '<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>' . - '</span>' . + '</a>' . '</li>'; } } |