Index: chrome/browser/resources/print_preview/header_footer_settings.js |
diff --git a/chrome/browser/resources/print_preview/header_footer_settings.js b/chrome/browser/resources/print_preview/header_footer_settings.js |
index 882829bc6db11a59ec23e6576075a27d2862a3b3..df74c67be5ed4d951bfb309f2e72f0e3433a4179 100644 |
--- a/chrome/browser/resources/print_preview/header_footer_settings.js |
+++ b/chrome/browser/resources/print_preview/header_footer_settings.js |
@@ -76,6 +76,10 @@ cr.define('print_preview', function() { |
} |
} |
this.setVisible_(headerFooterApplies); |
+ var headerFooterEvent = new cr.Event( |
+ customEvents.HEADER_FOOTER_VISIBILITY_CHANGED); |
+ headerFooterEvent.headerFooterApplies = headerFooterApplies; |
+ document.dispatchEvent(headerFooterEvent); |
}, |
/** |
@@ -108,17 +112,14 @@ cr.define('print_preview', function() { |
}, |
/** |
- * Hides or shows |this.headerFooterOption|. |
- * @param {boolean} visible True if |this.headerFooterOption| should be |
+ * Hides or shows |this.headerFooterOption_|. |
+ * @param {boolean} visible True if |this.headerFooterOption_| should be |
* shown. |
* @private |
*/ |
setVisible_: function(visible) { |
- if (visible) |
- fadeInOption(this.headerFooterOption_); |
- else |
- fadeOutOption(this.headerFooterOption_); |
- } |
+ this.headerFooterOption_.style.display = visible ? 'block' : 'none'; |
+ }, |
}; |
return { |