|
@@ -636,6 +636,8 @@ $(document).ready(function(){
|
636
|
636
|
if (response.count)
|
637
|
637
|
{
|
638
|
638
|
$('ul.elements').append(response.html);
|
|
639
|
+ refresh_social_buttons();
|
|
640
|
+
|
639
|
641
|
$('img.elements_more_loader').hide();
|
640
|
642
|
recolorize_element_list();
|
641
|
643
|
|
|
@@ -686,6 +688,7 @@ $(document).ready(function(){
|
686
|
688
|
);
|
687
|
689
|
|
688
|
690
|
$('ul.elements').html(response.html);
|
|
691
|
+ refresh_social_buttons();
|
689
|
692
|
|
690
|
693
|
if (response.count)
|
691
|
694
|
{
|
|
@@ -1283,6 +1286,7 @@ $(document).ready(function(){
|
1283
|
1286
|
{
|
1284
|
1287
|
$('form[name="add"]').find('ul.error_list').remove();
|
1285
|
1288
|
$('ul.elements').prepend(response.html);
|
|
1289
|
+ refresh_social_buttons();
|
1286
|
1290
|
$('form[name="add"] input[type="text"]').val('');
|
1287
|
1291
|
|
1288
|
1292
|
if ($('form[name="search"]').length)
|
|
@@ -1651,6 +1655,7 @@ $(document).ready(function(){
|
1651
|
1655
|
);
|
1652
|
1656
|
|
1653
|
1657
|
$('ul.elements').html(response.html);
|
|
1658
|
+ refresh_social_buttons();
|
1654
|
1659
|
|
1655
|
1660
|
if (response.count)
|
1656
|
1661
|
{
|
|
@@ -1857,6 +1862,7 @@ $(document).ready(function(){
|
1857
|
1862
|
}
|
1858
|
1863
|
|
1859
|
1864
|
$('ul.elements').prepend(response.html);
|
|
1865
|
+ refresh_social_buttons();
|
1860
|
1866
|
recolorize_element_list();
|
1861
|
1867
|
}
|
1862
|
1868
|
|
|
@@ -3384,8 +3390,37 @@ $(document).ready(function(){
|
3384
|
3390
|
});
|
3385
|
3391
|
|
3386
|
3392
|
|
|
3393
|
+ /*
|
|
3394
|
+ * SOCIAL BUTTONS
|
|
3395
|
+ *
|
|
3396
|
+ */
|
|
3397
|
+
|
|
3398
|
+ refresh_social_buttons();
|
|
3399
|
+
|
3387
|
3400
|
});
|
3388
|
3401
|
|
|
3402
|
+var facebook_like_rendereds = new Array();
|
|
3403
|
+function refresh_social_buttons()
|
|
3404
|
+{
|
|
3405
|
+ proceed_facebook_like_buttons();
|
|
3406
|
+ gapi.plusone.go();
|
|
3407
|
+ twttr.widgets.load();
|
|
3408
|
+}
|
|
3409
|
+
|
|
3410
|
+function proceed_facebook_like_buttons()
|
|
3411
|
+{
|
|
3412
|
+ $('ul.elements li.element').each(function(){
|
|
3413
|
+
|
|
3414
|
+ if ($.inArray($(this).get(0), facebook_like_rendereds) === -1)
|
|
3415
|
+ {
|
|
3416
|
+ FB.XFBML.parse($(this).get(0));
|
|
3417
|
+ }
|
|
3418
|
+
|
|
3419
|
+ facebook_like_rendereds.push($(this).get(0));
|
|
3420
|
+ });
|
|
3421
|
+
|
|
3422
|
+}
|
|
3423
|
+
|
3389
|
3424
|
function open_ajax_popin(url, callback, data)
|
3390
|
3425
|
{
|
3391
|
3426
|
if (!popin_opened)
|