[livejournal] r21416: LJSUP-11320: One-mega-day / vkontakte sh...
Committer: dpetrov
LJSUP-11320: One-mega-day / vkontakte sharingU trunk/htdocs/js/share.js
Modified: trunk/htdocs/js/share.js
===================================================================
--- trunk/htdocs/js/share.js 2012-03-14 11:53:16 UTC (rev 21415)
+++ trunk/htdocs/js/share.js 2012-03-14 12:06:39 UTC (rev 21416)
@@ -239,7 +239,7 @@
dom.bubble('hide');
var service = $( this ).attr( 'data-service' );
- LJShare.openPopupEvent(this, ev, options.url, service);
+ LJShare.openPopupEvent(this, ev, options, service);
} );
}
@@ -266,7 +266,7 @@
* open popup functionality was exposed to allow the modification of its behavior
* by external scripts
*/
-window.LJShare.openPopupEvent = function(el, ev, url, service) {
+window.LJShare.openPopupEvent = function(el, ev, options, service) {
var width, height;
if( global_options.services[ service ].openInTab ) {
@@ -285,7 +285,7 @@
height = global_options.services[ service ].height || 480;
w = window.open(el.href, 'sharer', 'toolbar=0,status=0,width=' + width + ',height=' + height + ',scrollbars=yes,resizable=yes');
//double encoded url?!
- pollForWindowClose(w, service, decodeURIComponent(decodeURIComponent(url)));
+ pollForWindowClose(w, service, decodeURIComponent(decodeURIComponent(options.url)));
}
};
