social_share_privacy 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
|
|
162
162
|
var $container_fb = $('li.facebook', context);
|
|
163
163
|
|
|
164
|
-
$('li.facebook div.fb_like img.fb_like_privacy_dummy,li.facebook span.switch', context).
|
|
164
|
+
$('li.facebook div.fb_like img.fb_like_privacy_dummy,li.facebook span.switch', context).bind('click', function () {
|
|
165
165
|
if ($container_fb.find('span.switch').hasClass('off')) {
|
|
166
166
|
$container_fb.addClass('info_off');
|
|
167
167
|
$container_fb.find('span.switch').addClass('on').removeClass('off').html(options.services.facebook.txt_fb_on);
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
var $container_tw = $('li.twitter', context);
|
|
196
196
|
|
|
197
|
-
$('li.twitter div.tweet img,li.twitter span.switch', context).
|
|
197
|
+
$('li.twitter div.tweet img,li.twitter span.switch', context).bind('click', function () {
|
|
198
198
|
if ($container_tw.find('span.switch').hasClass('off')) {
|
|
199
199
|
$container_tw.addClass('info_off');
|
|
200
200
|
$container_tw.find('span.switch').addClass('on').removeClass('off').html(options.services.twitter.txt_twitter_on);
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
|
|
223
223
|
var $container_gplus = $('li.gplus', context);
|
|
224
224
|
|
|
225
|
-
$('li.gplus div.gplusone img,li.gplus span.switch', context).
|
|
225
|
+
$('li.gplus div.gplusone img,li.gplus span.switch', context).bind('click', function () {
|
|
226
226
|
if ($container_gplus.find('span.switch').hasClass('off')) {
|
|
227
227
|
$container_gplus.addClass('info_off');
|
|
228
228
|
$container_gplus.find('span.switch').addClass('on').removeClass('off').html(options.services.gplus.txt_gplus_on);
|
|
@@ -241,12 +241,12 @@
|
|
|
241
241
|
context.append('<li class="settings_info"><div class="settings_info_menu off perma_option_off"><a href="' + options.info_link + '"><span class="help_info icon"><span class="info">' + options.txt_help + '</span></span></a></div></li>');
|
|
242
242
|
|
|
243
243
|
// Info-Overlays mit leichter Verzoegerung einblenden
|
|
244
|
-
$('.help_info:not(.info_off)', context).
|
|
244
|
+
$('.help_info:not(.info_off)', context).bind('mouseenter', function () {
|
|
245
245
|
var $info_wrapper = $(this);
|
|
246
246
|
var timeout_id = window.setTimeout(function () { $($info_wrapper).addClass('display'); }, 500);
|
|
247
247
|
$(this).data('timeout_id', timeout_id);
|
|
248
248
|
});
|
|
249
|
-
$('.help_info', context).
|
|
249
|
+
$('.help_info', context).bind('mouseleave', function () {
|
|
250
250
|
var timeout_id = $(this).data('timeout_id');
|
|
251
251
|
window.clearTimeout(timeout_id);
|
|
252
252
|
if ($(this).hasClass('display')) {
|
|
@@ -322,18 +322,18 @@
|
|
|
322
322
|
$container_settings_info.find('span.settings').css('cursor', 'pointer');
|
|
323
323
|
|
|
324
324
|
// Einstellungs-Menue bei mouseover ein-/ausblenden
|
|
325
|
-
$($container_settings_info.find('span.settings'), context).
|
|
325
|
+
$($container_settings_info.find('span.settings'), context).bind('mouseenter', function () {
|
|
326
326
|
var timeout_id = window.setTimeout(function () { $container_settings_info.find('.settings_info_menu').removeClass('off').addClass('on'); }, 500);
|
|
327
327
|
$(this).data('timeout_id', timeout_id);
|
|
328
328
|
});
|
|
329
|
-
$($container_settings_info, context).
|
|
329
|
+
$($container_settings_info, context).bind('mouseleave', function () {
|
|
330
330
|
var timeout_id = $(this).data('timeout_id');
|
|
331
331
|
window.clearTimeout(timeout_id);
|
|
332
332
|
$container_settings_info.find('.settings_info_menu').removeClass('on').addClass('off');
|
|
333
333
|
});
|
|
334
334
|
|
|
335
335
|
// Klick-Interaktion auf <input> um Dienste dauerhaft ein- oder auszuschalten (Cookie wird gesetzt oder geloescht)
|
|
336
|
-
$($container_settings_info.find('fieldset input')).
|
|
336
|
+
$($container_settings_info.find('fieldset input')).bind('click', function (event) {
|
|
337
337
|
var click = event.target.id;
|
|
338
338
|
var service = click.substr(click.lastIndexOf('_') + 1, click.length);
|
|
339
339
|
var cookie_name = 'socialSharePrivacy_' + service;
|