summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@etu.unistra.fr>2021-01-17 19:52:14 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit5342837d40a68fa1ecc1bad0a8e8224feca3a96d (patch)
treea4265255a84b7432373e1277c7d17c740cd92f9e /templates
parentea4178620be71ce993144fad600647491ba1b3fb (diff)
✨ NewsItem: share with user on click (front-end)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 3dcea9bd1..d3aaf0295 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -121,7 +121,9 @@
</form>
- <a ng-repeat="user in Share.userList">
+ <a
+ ng-repeat="user in Share.userList"
+ ng-click="Share.shareItem(item.id, user.value.shareWith)">
{{ user.value.shareWith }}
</a>