Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: chrome/common/extensions/docs/static/js/platform_chooser.js

Issue 15087006: Docserver: there is only one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: epic rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Intializes the platform chooser, the widget in the top left corner with the
6 // 'Apps...Extensions' dropdown.
7 (function() {
8
9 var platformChooser = document.getElementById('platform-chooser-popup');
10 Array.prototype.forEach.call(platformChooser.getElementsByTagName('button'),
11 function(button) {
12 button.addEventListener('click', function(event) {
13 window.location.assign(button.getAttribute('data-href'));
14 event.stopPropagation();
15 });
16 });
17
18 })()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/js/branch.js ('k') | chrome/common/extensions/docs/templates/private/apps_footer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698