| Index: chrome/browser/resources/help/help_page.js
|
| diff --git a/chrome/browser/resources/help/help_page.js b/chrome/browser/resources/help/help_page.js
|
| index 5053ff20ba111da301b7eaa36747275d4793effe..0f51d555ed6455b096fd00b714a64f3cca5f2087 100644
|
| --- a/chrome/browser/resources/help/help_page.js
|
| +++ b/chrome/browser/resources/help/help_page.js
|
| @@ -12,7 +12,8 @@ cr.define('help', function() {
|
| */
|
| function HelpPage() {
|
| var id = loadTimeData.valueExists('aboutOverlayTabTitle') ?
|
| - 'aboutOverlayTabTitle' : 'aboutTitle';
|
| + 'aboutOverlayTabTitle' :
|
| + 'aboutTitle';
|
| Page.call(this, 'help', loadTimeData.getString(id), 'help-page');
|
| }
|
|
|
| @@ -94,14 +95,14 @@ cr.define('help', function() {
|
| $('get-help').onclick = function() {
|
| chrome.send('openHelpPage');
|
| };
|
| -<if expr="_google_chrome">
|
| + // <if expr="_google_chrome">
|
| $('report-issue').onclick = function() {
|
| chrome.send('openFeedbackDialog');
|
| };
|
| -</if>
|
| + // </if>
|
|
|
| - this.maybeSetOnClick_($('more-info-expander'),
|
| - this.toggleMoreInfo_.bind(this));
|
| + this.maybeSetOnClick_(
|
| + $('more-info-expander'), this.toggleMoreInfo_.bind(this));
|
|
|
| this.maybeSetOnClick_($('promote'), function() {
|
| chrome.send('promoteUpdater');
|
| @@ -169,10 +170,9 @@ cr.define('help', function() {
|
| channelChangeDisallowedError.appendChild(channelChangeDisallowedText);
|
|
|
| $('channel-change-disallowed-icon').onclick = function() {
|
| - PageManager.showBubble(channelChangeDisallowedError,
|
| - $('channel-change-disallowed-icon'),
|
| - $('help-container'),
|
| - cr.ui.ArrowLocation.TOP_END);
|
| + PageManager.showBubble(
|
| + channelChangeDisallowedError, $('channel-change-disallowed-icon'),
|
| + $('help-container'), cr.ui.ArrowLocation.TOP_END);
|
| };
|
|
|
| // Unhide the regulatory label if/when the image loads.
|
| @@ -181,8 +181,8 @@ cr.define('help', function() {
|
| };
|
|
|
| $('controlled-feature-icon').onclick = function(e) {
|
| - var content = /** @type {HTMLElement} */(
|
| - document.createElement('div'));
|
| + var content =
|
| + /** @type {HTMLElement} */ (document.createElement('div'));
|
| content.textContent =
|
| loadTimeData.getString('updateDisabledByPolicy');
|
| var bubble = new cr.ui.AutoCloseBubble;
|
| @@ -197,12 +197,14 @@ cr.define('help', function() {
|
|
|
| var logo = $('product-logo');
|
| logo.onclick = function(e) {
|
| - logo.animate({
|
| - transform: ['none', 'rotate(-10turn)'],
|
| - }, /** @type {!KeyframeEffectOptions} */({
|
| - duration: 500,
|
| - easing: 'cubic-bezier(1, 0, 0, 1)',
|
| - }));
|
| + logo.animate(
|
| + {
|
| + transform: ['none', 'rotate(-10turn)'],
|
| + },
|
| + /** @type {!KeyframeEffectOptions} */ ({
|
| + duration: 500,
|
| + easing: 'cubic-bezier(1, 0, 0, 1)',
|
| + }));
|
| };
|
|
|
| // Attempt to update.
|
| @@ -354,8 +356,7 @@ cr.define('help', function() {
|
| if (status == null)
|
| return;
|
|
|
| - if (cr.isMac &&
|
| - $('update-status-message') &&
|
| + if (cr.isMac && $('update-status-message') &&
|
| $('update-status-message').hidden) {
|
| // Chrome has reached the end of the line on this system. The
|
| // update-obsolete-system message is displayed. No other auto-update
|
| @@ -370,9 +371,8 @@ cr.define('help', function() {
|
| } else if (status == 'updating') {
|
| this.setUpdateImage_('working');
|
| if (this.channelsDiffer_()) {
|
| - $('update-status-message').innerHTML =
|
| - loadTimeData.getStringF('updatingChannelSwitch',
|
| - this.channelTable_[channel].label);
|
| + $('update-status-message').innerHTML = loadTimeData.getStringF(
|
| + 'updatingChannelSwitch', this.channelTable_[channel].label);
|
| } else {
|
| $('update-status-message').innerHTML =
|
| loadTimeData.getStringF('updating');
|
| @@ -401,16 +401,16 @@ cr.define('help', function() {
|
|
|
| // Show EndofLife Strings if applicable
|
| if (eolStatus == 'device_supported') {
|
| - $('eol-status-container').hidden = true;
|
| + $('eol-status-container').hidden = true;
|
| } else if (eolStatus == 'device_endoflife') {
|
| - $('eol-message').innerHTML = eolMessage;
|
| - $('eol-status-container').hidden = false;
|
| + $('eol-message').innerHTML = eolMessage;
|
| + $('eol-status-container').hidden = false;
|
| }
|
|
|
|
|
| if (cr.isChromeOS) {
|
| - $('change-channel').disabled = !this.canChangeChannel_ ||
|
| - status == 'nearly_updated';
|
| + $('change-channel').disabled =
|
| + !this.canChangeChannel_ || status == 'nearly_updated';
|
| $('channel-change-disallowed-icon').hidden = this.canChangeChannel_;
|
| }
|
|
|
| @@ -434,7 +434,8 @@ cr.define('help', function() {
|
| // status
|
| $('request-update').disabled =
|
| !((this.haveNeverCheckedForUpdates_ && status == 'updated') ||
|
| - status == 'failed') || (eolStatus == 'device_endoflife');
|
| + status == 'failed') ||
|
| + (eolStatus == 'device_endoflife');
|
| // If updates are disabled by policy, unhide the
|
| // controlled-feature-icon.
|
| $('controlled-feature-icon').hidden = (status != 'disabled_by_admin');
|
| @@ -461,7 +462,7 @@ cr.define('help', function() {
|
| // Hide the request update button if auto-updating is disabled or
|
| // a relaunch button is showing.
|
| $('request-update').hidden = status == 'disabled' ||
|
| - !$('relaunch').hidden || !relaunchAndPowerwashHidden;
|
| + !$('relaunch').hidden || !relaunchAndPowerwashHidden;
|
| }
|
|
|
| if (!cr.isMac)
|
| @@ -779,7 +780,5 @@ cr.define('help', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - HelpPage: HelpPage
|
| - };
|
| + return {HelpPage: HelpPage};
|
| });
|
|
|