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

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

Issue 7740025: Cancel the pending print preview request when the user request to show the system dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 0231ace521274cdd26e63edf2e225b88d8fd9595..6f95188bbd766b34070ace4c83682de61a88d083 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -140,6 +140,8 @@ function disableInputElementsInSidebar() {
* backend to open the native print dialog.
*/
function onSystemDialogLinkClicked() {
+ if (showingSystemDialog)
Lei Zhang 2011/08/25 17:29:00 Do you want to do the same below in launchNativePr
kmadhusu 2011/08/25 18:28:59 Yes.
+ return;
showingSystemDialog = true;
disableInputElementsInSidebar();
$('system-dialog-throbber').classList.remove('hidden');
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | chrome/browser/ui/webui/print_preview_ui.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698