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

Unified Diff: chrome/browser/resources/print_preview/copies_settings.js

Issue 8371017: Print Preview: Changing the structure of the html/css. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating unittests Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/copies_settings.js
diff --git a/chrome/browser/resources/print_preview/copies_settings.js b/chrome/browser/resources/print_preview/copies_settings.js
index 15f12fe58c7c2c25f77152bc30024f788e4b83a2..4a3737f4f7b43c36cf68869ee21057969de049b1 100644
--- a/chrome/browser/resources/print_preview/copies_settings.js
+++ b/chrome/browser/resources/print_preview/copies_settings.js
@@ -161,15 +161,11 @@ cr.define('print_preview', function() {
* @private
*/
onPrinterCapabilitiesUpdated_: function(e) {
- if (e.printerCapabilities.disableCopiesOption) {
- fadeOutElement(this.copiesOption_);
- $('hr-before-copies').classList.remove('invisible');
- } else {
- fadeInElement(this.copiesOption_);
- $('hr-before-copies').classList.add('invisible');
- }
this.updateTwoSidedOption_(
e.printerCapabilities.printerDefaultDuplexValue);
+ e.printerCapabilities.disableCopiesOption ?
+ fadeOutOption(this.copiesOption_) :
+ fadeInOption(this.copiesOption_);
},
/**

Powered by Google App Engine
This is Rietveld 408576698