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

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

Issue 8343017: Print Preview: Hiding margins UI if an error occurs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding documentation 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/preview_area.js
diff --git a/chrome/browser/resources/print_preview/preview_area.js b/chrome/browser/resources/print_preview/preview_area.js
index 5154cc223cefcaa817aef9f29f0ea71e43279da2..b7be7d30500891050f8ced252bc2601b0bb90cea 100644
--- a/chrome/browser/resources/print_preview/preview_area.js
+++ b/chrome/browser/resources/print_preview/preview_area.js
@@ -199,7 +199,6 @@ cr.define('print_preview', function() {
* @param {string} errorMessage The error message to be displayed.
*/
displayErrorMessage: function(errorMessage) {
Evan Stade 2011/10/19 22:34:11 this function should be renamed and the doc should
dpapad 2011/10/19 22:56:21 Done. Temporarily though. I am planning to move th
- $('print-button').disabled = true;
this.overlayLayer.classList.remove('invisible');
this.customMessage_.textContent = errorMessage;
this.customMessage_.hidden = false;
@@ -209,6 +208,7 @@ cr.define('print_preview', function() {
$('mainview').removeChild(this.pdfPlugin_);
this.pdfPlugin_ = null;
}
+ cr.dispatchSimpleEvent(document, 'errorOccurred');
Evan Stade 2011/10/19 20:01:55 i'd like to see a more descriptive event name. Wha
dpapad 2011/10/19 22:31:59 Done.
},
/**

Powered by Google App Engine
This is Rietveld 408576698