From 82258fe8d7c10b5aed3885b43d110b86a3d8af62 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Tue, 3 Oct 2017 18:33:45 +0200 Subject: [PATCH] Force locales icon to end of list. WIP #807 @0:05 --- js/libs/fluidbook/fluidbook.nav.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index 21673204..28f3d406 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -298,11 +298,10 @@ FluidbookNav.prototype = { } // If the locales icon is included, it should always be placed last in the list for formatting reasons - // Update: disabled this to allow it to be set anywhere in the list - // var localeIconIndex; - // if ((localeIconIndex = navOrder.indexOf('lang')) !== -1) { - // navOrder.push(navOrder.splice(localeIconIndex, 1)[0]); // Push to end of array - // } + var localeIconIndex; + if ((localeIconIndex = navOrder.indexOf('lang')) !== -1) { + navOrder.push(navOrder.splice(localeIconIndex, 1)[0]); // Push to end of array + } // Backwards compatibility for old "afterSearch" setting to work with new "extra" link -- 2.39.5