You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/09/18 11:13:29 UTC

svn commit: r1625922 - /tomee/site/trunk/content/resources/js/common.js

Author: andygumbrecht
Date: Thu Sep 18 09:13:29 2014
New Revision: 1625922

URL: http://svn.apache.org/r1625922
Log:
Fix bad ref

Modified:
    tomee/site/trunk/content/resources/js/common.js

Modified: tomee/site/trunk/content/resources/js/common.js
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/resources/js/common.js?rev=1625922&r1=1625921&r2=1625922&view=diff
==============================================================================
--- tomee/site/trunk/content/resources/js/common.js (original)
+++ tomee/site/trunk/content/resources/js/common.js Thu Sep 18 09:13:29 2014
@@ -1,5 +1,6 @@
 $(document).ready(function() {
-	var location = escape(window.localtion.href).replace("+", "%2B").replace("/", "%2F");
+	//var location = escape(window.location.href).replace("+", "%2B").replace("/", "%2F");
+	var location = encodeURIComponent(window.location.href);
 	$('fb_share_link').attr('share_url', location);
 	$('fb_share_link').attr('share_url', 'http://twitter.com/share?url=' + location + "&via=OpenEJB");
 });