Skip to content

Commit

Permalink
Remove email field from GitHub issue reports #FIXIT (53 minutes ahead…
Browse files Browse the repository at this point in the history
… of schedule)

Reviewers: alpert, kamens

Reviewed By: kamens

Differential Revision: http://phabricator.khanacademy.org/D412
  • Loading branch information
beneater committed Jul 18, 2012
1 parent 915b69d commit 20e8703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion exercises/khan-exercise.html
Expand Up @@ -84,7 +84,6 @@
</ul>
</fieldset>
<label for="issue-title">Issue Title:<input type="text" name="issue-title" id="issue-title" /></label>
<label for="issue-email">Your Email (optional):<input type="text" name="issue-email" id="issue-email" /></label>
<label for="issue-body">Description of Issue:<textarea name="issue-body" id="issue-body"></textarea></label>
<input type="submit" class="simple-button" value="Submit Issue">
<a href="/#" id="issue-cancel">Cancel</a>
Expand Down
5 changes: 2 additions & 3 deletions khan-exercise.js
Expand Up @@ -2174,7 +2174,7 @@ var Khan = (function() {
e.preventDefault();

$("#issue").hide(500);
$("#issue-title, #issue-email, #issue-body").val("");
$("#issue-title, #issue-body").val("");

});

Expand All @@ -2189,7 +2189,6 @@ var Khan = (function() {
var pretitle = exerciseName,
type = $("input[name=issue-type]:checked").prop("id"),
title = $("#issue-title").val(),
email = $("#issue-email").val(),
path = exerciseFile + "?seed=" +
problemSeed + "&problem=" + problemID,
pathlink = "[" + path + (exercise.data("name") != null && exercise.data("name") !== exerciseId ? " (" + exercise.data("name") + ")" : "") + "](http://sandcastle.khanacademy.org/media/castles/Khan:master/exercises/" + path + "&debug)",
Expand All @@ -2199,7 +2198,7 @@ var Khan = (function() {
("loaded, " + (MathJax.isReady ? "" : "NOT ") + "ready, queue length: " + MathJax.Hub.queue.queue.length)),
sessionStorageInfo = (typeof sessionStorage === "undefined" || typeof sessionStorage.getItem === "undefined" ? "sessionStorage NOT enabled" : null),
warningInfo = $("#warning-bar-content").text(),
parts = [email ? "Reporter: " + email : null, $("#issue-body").val() || null, pathlink, historyLink, " " + JSON.stringify(guessLog), agent, sessionStorageInfo, mathjaxInfo, warningInfo],
parts = [$("#issue-body").val() || null, pathlink, historyLink, " " + JSON.stringify(guessLog), agent, sessionStorageInfo, mathjaxInfo, warningInfo],
body = $.grep(parts, function(e) { return e != null; }).join("\n\n");

var mathjaxLoadFailures = $.map(MathJax.Ajax.loading, function(info, script) {
Expand Down

0 comments on commit 20e8703

Please sign in to comment.