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

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 function commetns Created 9 years, 4 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..26897a5a7385af62374b4c2b13354f87b6bba00b 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',
@@ -87,8 +85,7 @@ cr.define('print_preview', function() {
* @private
*/
onPDFLoaded_: function() {
- if (!previewModifiable)
- fadeOutElement(this.layoutOption_);
+ this.fadeInOut_(!previewModifiable);
},
/**

Powered by Google App Engine
This is Rietveld 408576698