can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19308: LJSUP-9016: LJ-like - add donate button

Committer: dpetrov
LJSUP-9016: LJ-like - add donate button
U   trunk/htdocs/js/journal.js
Modified: trunk/htdocs/js/journal.js
===================================================================
--- trunk/htdocs/js/journal.js	2011-06-16 10:21:38 UTC (rev 19307)
+++ trunk/htdocs/js/journal.js	2011-06-17 01:49:18 UTC (rev 19308)
@@ -148,8 +148,8 @@
 		var url = link.href,
 			origin, h;
 
-		var width = 900;
-		var height = 480;
+		var width = 800;
+		var height = 290;
 
 		jQuery.rpc.bind( function( ev ) {
 			if( ev.origin && ev.origin != Site.siteroot ) {
@@ -168,7 +168,7 @@
 			}
 		} );
 
-		var popupUrl = url +  '?usescheme=nonavigation';
+		var popupUrl = url + ( url.indexOf( "?" ) === -1 ? "?" : "&" ) + 'usescheme=nonavigation';
 		h = window.open( 'about:blank', 'donate' , 'toolbar=0,status=0,width=' + width + ',height=' + height + ',scrollbars=yes,resizable=yes');
 		h.name = location.href.replace( /#.*$/, '' );
 

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments