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

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

Issue 7550022: Print Preview: Fixing behavior of event listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding responseID to onDidPreviewPage Created 9 years, 5 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/layout_settings.js
diff --git a/chrome/browser/resources/print_preview/layout_settings.js b/chrome/browser/resources/print_preview/layout_settings.js
index 0932e21c566de0c0363a9a1bb2e74a02ef767b6c..629a3bccaa40ac00c8545f8be113144b76ff42e2 100644
--- a/chrome/browser/resources/print_preview/layout_settings.js
+++ b/chrome/browser/resources/print_preview/layout_settings.js
@@ -49,12 +49,10 @@ cr.define('print_preview', function() {
*/
addEventListeners: function() {
this.landscapeRadioButton_.onclick = function() {
- if (!hasPendingPreviewRequest)
- this.onLayoutButtonClick_();
+ this.onLayoutButtonClick_();
}.bind(this);
this.portraitRadioButton_.onclick = function() {
- if (!hasPendingPreviewRequest)
- this.onLayoutButtonClick_();
+ this.onLayoutButtonClick_();
}.bind(this);
document.addEventListener('PDFLoaded', this.onPDFLoaded_.bind(this));
document.addEventListener('printerCapabilitiesUpdated',

Powered by Google App Engine
This is Rietveld 408576698