| Index: chrome/browser/resources/about_flash.js
|
| diff --git a/chrome/browser/resources/about_flash.js b/chrome/browser/resources/about_flash.js
|
| index 4f51d77f64cd750732370f147c8550ffadf5fe3c..9734542bd234ab20db0b76303d16e3a0146ea778 100644
|
| --- a/chrome/browser/resources/about_flash.js
|
| +++ b/chrome/browser/resources/about_flash.js
|
| @@ -1,3 +1,7 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| /**
|
| * Takes the |moduleListData| input argument which represents data about
|
| * the currently available modules and populates the html jstemplate
|
| @@ -7,7 +11,7 @@
|
| function renderTemplate(moduleListData) {
|
| // This is the javascript code that processes the template:
|
| var input = new JsEvalContext(moduleListData);
|
| - var output = document.getElementById('flashInfoTemplate');
|
| + var output = $('flashInfoTemplate');
|
| jstProcess(input, output);
|
| }
|
|
|
| @@ -16,19 +20,19 @@ function renderTemplate(moduleListData) {
|
| * the data in returnFlashInfo() (below).
|
| */
|
| function requestFlashInfo() {
|
| - chrome.send('requestFlashInfo', []);
|
| + chrome.send('requestFlashInfo');
|
| }
|
|
|
| /**
|
| * Called by the WebUI to re-populate the page with data representing the
|
| * current state of Flash.
|
| +* @param {Object} moduleListData Information about available modules.
|
| */
|
| function returnFlashInfo(moduleListData) {
|
| - document.getElementById('loading-message').style.visibility = 'hidden';
|
| - document.getElementById('body-container').style.visibility = 'visible';
|
| + $('loading-message').style.visibility = 'hidden';
|
| + $('body-container').style.visibility = 'visible';
|
| renderTemplate(moduleListData);
|
| }
|
|
|
| // Get data and have it displayed upon loading.
|
| document.addEventListener('DOMContentLoaded', requestFlashInfo);
|
| -
|
|
|