DOMUI Prefs: Fix the initial visibility of Search

Don't start with Search visible, since it can cause the code that shows specific sub pages to be confused when prefs are opened to a specific URL, and leave search as the root page.

Also fixes an exception during initialization on non-ChromeOS machines.

BUG=69613
TEST=Opening prefs to a subpage by URL should show the right parent page, not Search.

Review URL: http://codereview.chromium.org/6374005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71900 0039d316-1c4b-4281-b951-d872f2087c98
parent a0d191ea
......@@ -261,7 +261,8 @@ var OptionsPage = options.OptionsPage;
AdvancedOptions.RemoveRemotingSection = function() {
var proxySectionElm = $('remoting-section');
proxySectionElm.parentNode.removeChild(proxySectionElm);
if (proxySectionElm)
proxySectionElm.parentNode.removeChild(proxySectionElm);
};
// Export
......
<div id="searchPage" class="page">
<div id="searchPage" class="page hidden">
<h1 i18n-content="searchPageTitle"></h1>
<div id="searchPageInfo">
<p i18n-content="searchPageInfo"></p>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment