summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/print_preview
diff options
context:
space:
mode:
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 04:11:32 +0000
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 04:11:32 +0000
commit89dd772ddc3790c304585d4b9451a42743240cb0 (patch)
tree82ef4c927daed984399cd2f41e4249e7ac8abc8d /chrome/browser/resources/print_preview
parent155d710d819c80a75d3d716c9e272a29420ef05a (diff)
downloadchromium_src-89dd772ddc3790c304585d4b9451a42743240cb0.zip
chromium_src-89dd772ddc3790c304585d4b9451a42743240cb0.tar.gz
chromium_src-89dd772ddc3790c304585d4b9451a42743240cb0.tar.bz2
Print Preview: Removing 'Invalid number of copies' error message.
BUG=94429 TEST=See bug description. Review URL: http://codereview.chromium.org/7817001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/print_preview')
-rw-r--r--chrome/browser/resources/print_preview/print_header.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index 1ae7614..fb95f97 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -82,13 +82,8 @@ cr.define('print_preview', function() {
var printToPDF = getSelectedPrinterName() == PRINT_TO_PDF;
var copies = printToPDF ? 1 : copiesSettings.numberOfCopies;
- if (!printToPDF && !copiesSettings.isValid()) {
- this.summary_.innerHTML =
- localStrings.getString('invalidNumberOfCopies');
- return;
- }
-
- if (!pageSettings.isPageSelectionValid()) {
+ if ((!printToPDF && !copiesSettings.isValid()) ||
+ !pageSettings.isPageSelectionValid()) {
this.summary_.innerHTML = '';
return;
}