mirror of
https://github.com/danbulant/api_docs
synced 2026-05-19 20:28:52 +00:00
Merge pull request #53 from bootstraponline/dont_crash_on_invalid_language
Don't crash on invalid language
This commit is contained in:
commit
6bf197da74
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ under the License.
|
|||
global.activateLanguage = activateLanguage;
|
||||
|
||||
function activateLanguage(language) {
|
||||
if (!language) return;
|
||||
$("#lang-selector a").removeClass('active');
|
||||
$("#lang-selector a[data-language-name='" + language + "']").addClass('active');
|
||||
for (var i=0; i < languages.length; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue