From 6b719da3162ef99db8b90379a9dc4724b571395f Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 20 Apr 2012 10:19:54 -0700 Subject: [PATCH] docs: update sidenav-width-adjust script so Training classes save the width for the Resources section Change-Id: I0125b1d585a0adde7f5f485f3288fdc7a8a55faf --- tools/droiddoc/templates-sdk/assets/android-developer-docs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/droiddoc/templates-sdk/assets/android-developer-docs.js b/tools/droiddoc/templates-sdk/assets/android-developer-docs.js index c88f726da..5fc7e09be 100644 --- a/tools/droiddoc/templates-sdk/assets/android-developer-docs.js +++ b/tools/droiddoc/templates-sdk/assets/android-developer-docs.js @@ -372,6 +372,7 @@ function resizeWidth() { if (sidenav.length) { // Must check if the nav exists because IE6 calls resizeWidth() from resizeAll() for all pages var basePath = getBaseUri(location.pathname); var section = basePath.substring(1,basePath.indexOf("/",1)); + section = section.indexOf("training") != -1 ? "resources" : section; writeCookie("width", sidenavWidth, section, null); } }