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

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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..38099110c94df0a75bc2787568e8060333c7b1cb 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)
+ return;
showingSystemDialog = true;
disableInputElementsInSidebar();
$('system-dialog-throbber').classList.remove('hidden');
@@ -151,6 +153,8 @@ function onSystemDialogLinkClicked() {
* 'Launch native print dialog' UI.
*/
function launchNativePrintDialog() {
+ if (showingSystemDialog)
+ return;
showingSystemDialog = true;
$('error-button').disabled = true;
$('native-print-dialog-throbber').classList.remove('hidden');
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698