diff --git a/system/modules/sharebuttons/assets/scripts.js b/system/modules/sharebuttons/assets/scripts.js index c47c986..34f06dd 100644 --- a/system/modules/sharebuttons/assets/scripts.js +++ b/system/modules/sharebuttons/assets/scripts.js @@ -2,6 +2,6 @@ function shd() {}; shd.open = function(href,width,height) { - window.open(href, '', 'width='+width+',height='+height+',modal=yes,left=100,top=50,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); + window.open(href, '', 'width='+width+',height='+height+',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); return false; }; diff --git a/system/modules/sharebuttons/classes/ShareButtons.php b/system/modules/sharebuttons/classes/ShareButtons.php index f278144..388a5e6 100644 --- a/system/modules/sharebuttons/classes/ShareButtons.php +++ b/system/modules/sharebuttons/classes/ShareButtons.php @@ -120,7 +120,7 @@ public static function createShareButtons($networks, $theme = self::DEFAULT_THEM } // insert javascript - $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/sharebuttons/assets/scripts.js|static'; + $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/sharebuttons/assets/scripts.js|async'; // return parsed template return $objButtonsTemplate->parse(); diff --git a/system/modules/sharebuttons/templates/sharebuttons_default.html5 b/system/modules/sharebuttons/templates/sharebuttons_default.html5 index 87e05ed..a57328a 100644 --- a/system/modules/sharebuttons/templates/sharebuttons_default.html5 +++ b/system/modules/sharebuttons/templates/sharebuttons_default.html5 @@ -8,7 +8,7 @@