[Pkg-owncloud-commits] [owncloud] 11/205: make the click actions work
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:36:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit ac9733a8b8bb64a9cc5c5b792fb1119106d76fd0
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Wed Jun 17 13:40:46 2015 +0200
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(-)
diff --git a/apps/files_sharing/js/settings-personal.js b/apps/files_sharing/js/settings-personal.js
index 800579d..1c7aea0 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 8703352..c6bb147 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>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list