[livejournal] r18550: LJSUP-8132: Need to change bubble
Committer: dpetrov
LJSUP-8132: Need to change bubbleU 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)' )
