diff shoutbox/static/js/shoutbox.js @ 672:69e8aa135c2e

For issue #34, make social media share buttons more privacy concious.
author Brian Neal <bgneal@gmail.com>
date Sun, 26 May 2013 13:29:44 -0500
parents ee87ea74d46b
children
line wrap: on
line diff
--- a/shoutbox/static/js/shoutbox.js	Sat May 25 22:17:46 2013 -0500
+++ b/shoutbox/static/js/shoutbox.js	Sun May 26 13:29:44 2013 -0500
@@ -23,6 +23,15 @@
        }
    });
 
+   // social bookmarking pop-up support
+   $('.social-sharing').delegate('a', 'click', function(e) {
+      if ($(window).width() > 700)
+      {
+         e.preventDefault();
+         window.open(this.href,'share-this','height=300,width=500,status=no,toolbar=no');
+      }
+   });
+
    $("html").bind("ajaxStart", function() {
       $(this).addClass('busy');
    }).bind("ajaxStop", function() {