Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r17151: LJSUP-6474: FaceBook authoriazation. JS

Committer: szhirkov
LJSUP-6474: FaceBook authoriazation. JS
U   trunk/htdocs/js/talkpost.js
Modified: trunk/htdocs/js/talkpost.js
===================================================================
--- trunk/htdocs/js/talkpost.js	2010-08-18 07:50:31 UTC (rev 17150)
+++ trunk/htdocs/js/talkpost.js	2010-08-18 08:25:24 UTC (rev 17151)
@@ -101,10 +101,12 @@
 			var radio = radio_fblo || radio_fbli;
 			
 			showMe(fb_more);
+			toggleTextHighlight(fb_more, true);
 			
 			radio.checked = 1;
 		} else {
 			hideMe(fb_more);
+			toggleTextHighlight(fb_more, false);
 		}
 	}
     // OpenID
@@ -113,11 +115,13 @@
 			var radio = radio_oidli || radio_oidlo;
 			
             showMe(oid_more);
+			toggleTextHighlight(oid_more, true);
             oidurl.focus();
 			
 			radio.checked = 1;
         } else {
             hideMe(oid_more);
+			toggleTextHighlight(oid_more, false);
         }
     }
 
@@ -283,3 +287,14 @@
    
    jQuery(e).removeClass('display_none');
 }
+
+function toggleTextHighlight(e, show) {
+	var elem = jQuery(e).closest('td.b-postform-data'),
+		highlightClass = 'b-postform-active';
+	
+	if (show) {
+		elem.addClass(highlightClass);
+	} else {
+		elem.removeClass(highlightClass);
+	}
+}

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