Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[ljcom] r10131: LJINT-411: additional logout link

Committer: szhirkov
LJINT-411: additional logout link
U   trunk/htdocs/js/partners/xdreceiver.js
Modified: trunk/htdocs/js/partners/xdreceiver.js
===================================================================
--- trunk/htdocs/js/partners/xdreceiver.js	2011-02-25 09:05:42 UTC (rev 10130)
+++ trunk/htdocs/js/partners/xdreceiver.js	2011-02-25 10:54:13 UTC (rev 10131)
@@ -1,5 +1,5 @@
 var search = location.search.replace('?','').split("&"),
-vars = { replyto: null, comment_id: null, mode: 'add_comment' };
+vars = { replyto: null, comment_id: null, mode: 'add_comment', logged_in: null };
 
 for( var i = 0 ; i < search.length; ++i ) {
 	var arr = search[ i ].split('=');
@@ -8,13 +8,17 @@
 	}
 }
 
+if( vars.logged_in ) {
+	window.top.LJStoreUserState( vars.logged_in );
+}
+
 if( vars.mode == 'check' || vars.mode == 'check_domain' ) {
 	try {
 		var tryCheck = !!(window.top.location.href);
 	} catch (e) {
 		window.location.href = 'about:blank';
 	}
-} else if (vars.mode == 'close_frame') {
+} else if( vars.mode == 'close_frame' ) {
 	window.top.LJCloseFrame( );
 } else {
 	window.top.LJAddComment( vars );

Tags: aralot, js, ljcom
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