Skip to content

Commit

Permalink
Bug 816829 Clicking on awesome screen search results replaces browser…
Browse files Browse the repository at this point in the history
… app with target page
  • Loading branch information
benfrancis committed Nov 30, 2012
1 parent 9e567b0 commit 3e9f708
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 10 additions & 8 deletions apps/browser/index.html
Expand Up @@ -65,14 +65,16 @@ <h2 data-l10n-id="top-sites">Top Sites</h2>
</li>
</ul>
</nav>
<section id="top-sites" role="tabpanel" class="selected">
</section>
<section id="bookmarks" role="tabpanel">
</section>
<section id="history" role="tabpanel">
</section>
<section id="results">
</section>
<div id="tab-panels">
<section id="top-sites" role="tabpanel" class="selected">
</section>
<section id="bookmarks" role="tabpanel">
</section>
<section id="history" role="tabpanel">
</section>
<section id="results">
</section>
</div>
</div>

<div id="crashscreen">
Expand Down
6 changes: 2 additions & 4 deletions apps/browser/js/browser.js
Expand Up @@ -63,9 +63,7 @@ var Browser = {
this.urlInput.addEventListener('mouseup', this.urlMouseUp.bind(this));
this.urlInput.addEventListener('keyup',
this.handleUrlInputKeypress.bind(this));
this.topSites.addEventListener('click', this.followLink.bind(this));
this.bookmarks.addEventListener('click', this.followLink.bind(this));
this.history.addEventListener('click', this.followLink.bind(this));
this.tabPanels.addEventListener('click', this.followLink.bind(this));
this.urlButton.addEventListener('click',
this.handleUrlFormSubmit.bind(this));
this.tabsBadge.addEventListener('click',
Expand Down Expand Up @@ -169,7 +167,7 @@ var Browser = {
'bookmark-entry-sheet-done', 'bookmark-title', 'bookmark-url',
'bookmark-previous-url', 'bookmark-menu-add-home', 'new-tab-button',
'awesomescreen-cancel-button', 'startscreen', 'top-site-thumbnails',
'no-top-sites', 'clear-private-data-button', 'results'];
'no-top-sites', 'clear-private-data-button', 'results', 'tab-panels'];

// Loop and add element with camel style name to Modal Dialog attribute.
elementIDs.forEach(function createElementRef(name) {
Expand Down

0 comments on commit 3e9f708

Please sign in to comment.