Last active
December 11, 2015 23:49
-
-
Save ifnull/4679602 to your computer and use it in GitHub Desktop.
Drupal: Get English path from translated page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BLITZ_englishPath, | |
BLITZ_languageFormInputs = document.getElementById('lang-dropdown-form').firstChild.children; | |
for (var i = 0; i < BLITZ_languageFormInputs.length; i++) { | |
if(BLITZ_languageFormInputs[i].name === 'en'){ | |
BLITZ_englishPath = BLITZ_languageFormInputs[i].value; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment