diff options
author | rkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 23:26:44 +0000 |
---|---|---|
committer | rkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 23:26:44 +0000 |
commit | f1cbadcd4830901272cf824d9fdc19cd7bf68b86 (patch) | |
tree | caaa6609eb496151442d764c159cef6d10a75de1 | |
parent | 47bd52319e012d8df1528352e21a6d2ab75dc40a (diff) | |
download | chromium_src-f1cbadcd4830901272cf824d9fdc19cd7bf68b86.zip chromium_src-f1cbadcd4830901272cf824d9fdc19cd7bf68b86.tar.gz chromium_src-f1cbadcd4830901272cf824d9fdc19cd7bf68b86.tar.bz2 |
Fix send screenshot checkbox.
There isn't any code that actually handles the send screenshot checkbox for the feedback UI. This CL adds code to handle it.
R=xiyuan@chromium.org
BUG=293725
Review URL: https://codereview.chromium.org/24144005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223737 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/feedback/js/feedback.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/feedback/js/feedback.js b/chrome/browser/resources/feedback/js/feedback.js index c03d24c..2d10e9c 100644 --- a/chrome/browser/resources/feedback/js/feedback.js +++ b/chrome/browser/resources/feedback/js/feedback.js @@ -125,6 +125,10 @@ function sendReport() { } } + // If the user doesn't want to send the screenshot. + if (!$('screenshot-checkbox').checked) + feedbackInfo.screenshot = null; + chrome.feedbackPrivate.sendFeedback(feedbackInfo, function(result) { window.open(FEEDBACK_LANDING_PAGE, '_blank'); window.close(); |