make the click actions work

This commit is contained in:
Bjoern Schiessle 2015-06-17 13:40:46 +02:00
parent 4599da9608
commit ac9733a8b8
2 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,6 @@
$(document).ready(function() { $(document).ready(function() {
$('#fileSharingSettings img').click(function() { $('#fileSharingSettings button.pop-up').click(function() {
var url = $(this).data('url'); var url = $(this).data('url');
if (url) { if (url) {
var width = 600; var width = 600;

View File

@ -20,24 +20,26 @@ style('files_sharing', '3rdparty/gs-share/style');
<p> <p>
<?php p($l->t('Share it:')); ?> <?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'])); ?>' data-title='<?php p(urlencode($_['message_without_URL'])); ?>'
class='js-gs-share gs-share--icon'> class='js-gs-share social-gnu'>
GNU Social GNU Social
</button> </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']); ?>'> data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p($_['reference']); ?>'>
Diaspora Diaspora
</button> </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'])); ?>'> data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
Twitter Twitter
</button> </button>
<button class="social-facebook" <button class="social-facebook pop-up"
data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p($_['reference']); ?>'> data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p($_['reference']); ?>'>
Facebook Facebook
</button> </button>
<button class="social-googleplus" <button class="social-googleplus pop-up"
data-url='https://plus.google.com/share?url=<?php p($_['reference']); ?>'/> data-url='https://plus.google.com/share?url=<?php p($_['reference']); ?>'/>
Google+ Google+
</button> </button>