summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJimmy Huynh <jimmy.huynh@etu.unistra.fr>2021-02-19 15:30:19 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commita6dba240c96a619af1de29cb923fe4a49c3a3dae (patch)
tree5a4a79ba893ba78d011352517f7c5a0a97375f8f /templates
parent63dddc342e33b8e92ffc95df3768ff6d505a47b7 (diff)
(+) ui : dropdown on click (i.t of hover)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 170bc77ad..a2b2de26c 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -89,19 +89,19 @@
</button>
</li>
<!-- DROPDOWN SHARE -->
- <div class="dropdown">
- <li ng-click=""
+ <div class="dropdown"
+ ng-controller="ShareController as Share">
+ <li ng-click="Share.toggleDropdown()"
class="util"
- dropdownToggle
news-stop-propagation>
<button class="share svg dropbtn"
title="Partager">
</button>
</li>
<div
+ ng-if="Share.showDropDown"
style="margin-top: 2.8em;"
- class="dropdown-content"
- ng-controller="ShareController as Share">
+ class="dropdown-content">
<!-- Contact -->
<p class="label-group"><?php p($l->t('Users')) ?></p>
<form ng-submit="" name="contactForm" autocomplete="off">
@@ -130,7 +130,7 @@
<a
class="icon-category-installed pr-3"
ng-repeat="user in Share.userList"
- ng-click="Share.shareItem(item.id, user.value.shareWith)">
+ ng-click="Share.shareItem(item.id, user.value.shareWith)">
{{ user.value.shareWith }}
<span class="right" style="margin-top: 1.4em; margin-right: 1em"
ng-class="{'icon-loading-small': App.loading.isLoading(user.value.shareWith), 'icon-checkmark': !App.loading.isLoading(user.value.shareWith) && Share.usersSharedArticles[item.id].includes(user.value.shareWith)}">