can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r18550: LJSUP-8132: Need to change bubble

Committer: dpetrov
LJSUP-8132: Need to change bubble
U   trunk/htdocs/js/share.js
Modified: trunk/htdocs/js/share.js
===================================================================
--- trunk/htdocs/js/share.js	2011-03-15 08:45:00 UTC (rev 18549)
+++ trunk/htdocs/js/share.js	2011-03-15 09:06:28 UTC (rev 18550)
@@ -1,4 +1,4 @@
-;(function( window, $ ) {
+(function( window, $ ) {
 
 /**
 * 
@@ -44,7 +44,7 @@
 			return typeof r === 'string' || typeof r === 'number' ? r : a;
 		}
 	);
-};
+}
 
 var selectors = {
 	close: ".i-popup-close",
@@ -182,9 +182,8 @@
 		str += supplant( template.end, global_options.ml );
 
 		dom = $( str ).css( {
-			position: 'absolute',
-			visibility: 'hidden'
-		} );
+			position: 'absolute'
+		} ).hide();
 	}
 
 	function injectDom() {
@@ -253,7 +252,11 @@
 			arrPos += "r";
 		} else {
 			arrPos += "l";
-			linkLeft -= 24;
+			linkLeft -= 25;
+			if( linkW == 16 ) {
+				linkLeft -= 4;
+			}
+
 		}
 
 		arrow.removeClass().addClass( arrow_opts.className ).addClass( arrow_opts.position[ arrPos ] ); 
@@ -267,7 +270,7 @@
 			updatePopupPosition();
 		}
 
-		dom.css( 'visibility', ( show ) ? 'visible' : 'hidden' );
+		dom[ ( show ) ? 'show' : 'hide' ]();
 	}
 
 	link.attr( 'href', 'javascript:void(0)' )

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