From ac9733a8b8bb64a9cc5c5b792fb1119106d76fd0 Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Wed, 17 Jun 2015 13:40:46 +0200
Subject: make the click actions work

---
 apps/files_sharing/js/settings-personal.js         |  2 +-
 apps/files_sharing/templates/settings-personal.php | 14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)

(limited to 'apps')

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>
-- 
cgit v1.2.3