summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-19 21:40:43 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-19 21:40:43 +0000
commit5472489991a1b85cc75ec0f8d95ed35b1213cf48 (patch)
tree65f3b439549ae5d80637e3092f5861d38cd65bb1
parenta990d6042fc7594aa0578f4c259f76cf7df19ecd (diff)
downloadchromium_src-5472489991a1b85cc75ec0f8d95ed35b1213cf48.zip
chromium_src-5472489991a1b85cc75ec0f8d95ed35b1213cf48.tar.gz
chromium_src-5472489991a1b85cc75ec0f8d95ed35b1213cf48.tar.bz2
Print Preview: Hook up the cancel button.
BUG=57895 TEST=manual Review URL: http://codereview.chromium.org/5151009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66822 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/print_preview.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js
index 4fcf953..58ce836 100644
--- a/chrome/browser/resources/print_preview.js
+++ b/chrome/browser/resources/print_preview.js
@@ -8,6 +8,10 @@ var localStrings = new LocalStrings();
* Window onload handler, sets up the page.
*/
function load() {
+ $('cancel-button').addEventListener('click', function(e) {
+ window.close();
+ });
+
chrome.send('getPrinters');
};