diff --git a/source/javascripts/app/_toc.js b/source/javascripts/app/_toc.js index 44f704f..21d0800 100644 --- a/source/javascripts/app/_toc.js +++ b/source/javascripts/app/_toc.js @@ -48,6 +48,7 @@ $(function() { makeToc(); animate(); + setupLanguages($('body').data('languages')); $('.content').imagesLoaded( function() { global.toc.calculateHeights(); }); diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 1d2434d..24e9e43 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -13,7 +13,7 @@ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %> -<% language_tabs = current_page.data.language_tabs %> +<% language_tabs = current_page.data.language_tabs || [] %> @@ -32,17 +32,9 @@ under the License. <% else %> <%= javascript_include_tag "all_nosearch" %> <% end %> - - <% if language_tabs %> - - <% end %> - + NAV