summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-06-17 13:40:46 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-06-17 13:53:59 +0200
commitac9733a8b8bb64a9cc5c5b792fb1119106d76fd0 (patch)
tree2d45b128d242f05366955f1c7569c12e07f7a5d1 /apps
parent4599da9608edba255bd4e5806e16424c11ca3de2 (diff)
downloadnextcloud-server-ac9733a8b8bb64a9cc5c5b792fb1119106d76fd0.tar.gz
nextcloud-server-ac9733a8b8bb64a9cc5c5b792fb1119106d76fd0.zip
make the click actions work
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/settings-personal.js2
-rw-r--r--apps/files_sharing/templates/settings-personal.php14
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/files_sharing/js/settings-personal.js b/apps/files_sharing/js/settings-personal.js
index 800579d1eca..1c7aea0b9d6 100644
--- a/apps/files_sharing/js/settings-personal.js
+++ b/apps/files_sharing/js/settings-personal.js
@@ -1,6 +1,6 @@
$(document).ready(function() {
- $('#fileSharingSettings img').click(function() {
+ $('#fileSharingSettings button.pop-up').click(function() {
var url = $(this).data('url');
if (url) {
var width = 600;
diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php
index 8703352e024..c6bb1474c89 100644
--- a/apps/files_sharing/templates/settings-personal.php
+++ b/apps/files_sharing/templates/settings-personal.php
@@ -20,24 +20,26 @@ style('files_sharing', '3rdparty/gs-share/style');
<p>
<?php p($l->t('Share it:')); ?>
- <button class="social-gnu" data-url="<?php p($_['reference']); ?>"
+ <div class="gs-share">
+ <button data-url="<?php p($_['reference']); ?>"
data-title='<?php p(urlencode($_['message_without_URL'])); ?>'
- class='js-gs-share gs-share--icon'>
+ class='js-gs-share social-gnu'>
GNU Social
</button>
- <button class="social-diaspora"
+ </div>
+ <button class="social-diaspora pop-up"
data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p($_['reference']); ?>'>
Diaspora
</button>
- <button class="social-twitter"
+ <button class="social-twitter pop-up"
data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
Twitter
</button>
- <button class="social-facebook"
+ <button class="social-facebook pop-up"
data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p($_['reference']); ?>'>
Facebook
</button>
- <button class="social-googleplus"
+ <button class="social-googleplus pop-up"
data-url='https://plus.google.com/share?url=<?php p($_['reference']); ?>'/>
Google+
</button>