Read sdk vars from centralized files. Fix a couple of issues in navigation labels and alignment.

Change-Id: I71da51cd20ac68ad6bc82cf8d9507cda965ec88b
This commit is contained in:
Dirk Dougherty
2016-01-30 14:04:37 -08:00
parent 6857e477f5
commit 82e929d57c
3 changed files with 9 additions and 8 deletions

View File

@@ -4166,13 +4166,12 @@ switch (window.getLangPref()) {
views.addClass('dac-active');
} else {
// Activate back button and tier 2 nav.
var langAttr = window.getLangPref();
console.log("langAttr is " + langAttr);
views.slice(0, 2).addClass('dac-active');
var selectedNav = views.eq(2).find('.selected').after(forwardLink);
//select the localized text if available else the selectedNav value
if (langAttr!='en') {
$('.dac-nav-back-title').text(selectedNav.attr(langAttr + '-lang'));
var langAttr = selectedNav.attr(window.getLangPref() + '-lang');
//form the label from locale attr if possible, else set to selectedNav text value
if ((typeof langAttr !== typeof undefined && langAttr !== false) && (langAttr !== '')) {
$('.dac-nav-back-title').text(langAttr);
} else {
$('.dac-nav-back-title').text(selectedNav.text());
}