summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-04-05 13:11:55 +0200
committerJulius Härtl <jus@bitgrid.net>2018-04-05 13:11:55 +0200
commit2e60f91ab159e51b8b39788077178cf96e8cfa0f (patch)
treee031b269ee325a078c745e6fa2a4a0a42db6ba02 /lib/public/AppFramework
parent30e76f9f14d901025e245d9900b7ca1d3ff168ad (diff)
downloadnextcloud-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.php10
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>';
}
}