armen_asriyan (armen_asriyan) wrote in changelog,
armen_asriyan
armen_asriyan
changelog

[ljcom] r12989: LJSUP-14374: New links in the footer

Committer: aasriyan
LJSUP-14374: New links in the footer

U   trunk/htdocs/stc/lanzelot/js/menu.js
Modified: trunk/htdocs/stc/lanzelot/js/menu.js
===================================================================
--- trunk/htdocs/stc/lanzelot/js/menu.js	2012-12-04 10:42:31 UTC (rev 12988)
+++ trunk/htdocs/stc/lanzelot/js/menu.js	2012-12-04 11:47:22 UTC (rev 12989)
@@ -57,3 +57,17 @@
 		document.getElementById('m_last').className='ex last';
 		}
 }		
+
+(function() {
+	function changeLang() {
+		if (this.value) {
+			window.location = Site.siteroot + "/tools/setlang.bml?lang=" + this.value + "&returnto=" + encodeURIComponent(window.location);
+		}
+	}
+	
+	function initScheme() {
+		jQuery('#footer_lang_list').on('change', changeLang);
+	}
+	
+	LiveJournal.register_hook('page_load', initScheme);
+})();

Tags: aasriyan, armen_asriyan, 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