| Index: chrome/browser/resources/print_preview/page_settings.js
|
| ===================================================================
|
| --- chrome/browser/resources/print_preview/page_settings.js (revision 96579)
|
| +++ chrome/browser/resources/print_preview/page_settings.js (working copy)
|
| @@ -177,8 +177,9 @@
|
| /**
|
| * Updates |this.previouslySelectedPages_| with the currently selected
|
| * pages.
|
| + * @private
|
| */
|
| - updatePageSelection: function() {
|
| + updatePageSelection_: function() {
|
| this.previouslySelectedPages_ = this.selectedPagesSet;
|
| },
|
|
|
| @@ -193,14 +194,6 @@
|
| },
|
|
|
| /**
|
| - * Checks if the page selection has changed and is valid.
|
| - * @return {boolean} true if the page selection is changed and is valid.
|
| - */
|
| - hasPageSelectionChangedAndIsValid: function() {
|
| - return this.isPageSelectionValid() && this.hasPageSelectionChanged_();
|
| - },
|
| -
|
| - /**
|
| * Validates the contents of |this.selectedPagesTextfield|.
|
| *
|
| * @return {boolean} true if the text is valid.
|
| @@ -219,8 +212,8 @@
|
| * @return {boolean} true if a new preview was requested.
|
| */
|
| requestPrintPreviewIfNeeded: function() {
|
| - if (this.hasPageSelectionChangedAndIsValid()) {
|
| - this.updatePageSelection();
|
| + if (this.isPageSelectionValid() && this.hasPageSelectionChanged_()) {
|
| + this.updatePageSelection_();
|
| requestPrintPreview();
|
| return true;
|
| }
|
| @@ -281,6 +274,7 @@
|
| cr.dispatchSimpleEvent(document, 'updatePrintButton');
|
| return;
|
| }
|
| + this.previouslySelectedPages_ = this.selectedPagesSet;
|
| requestPrintPreview();
|
| },
|
|
|
|
|