diff options
author | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-17 21:14:47 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan@mozilla.com> | 2011-02-17 21:14:47 -0500 |
commit | 50fd52c2d4ca91bb2f2503e31629f4e13b1df868 (patch) | |
tree | d243e2efb60e6a3e1bb4c405afd1e62d33fccf02 | |
parent | f2e448b3c1ba270526f8a188eec6a565046c786b (diff) | |
download | bugzilla-triage-50fd52c2d4ca91bb2f2503e31629f4e13b1df868.tar.gz |
Remove the 'Assign to me' button as BMO now has a 'take' link for the same purpose
-rw-r--r-- | data/js/bug-page-mod.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js index f511c7c..b56d857 100644 --- a/data/js/bug-page-mod.js +++ b/data/js/bug-page-mod.js @@ -85,8 +85,6 @@ function tweakBugzilla(d) { if (commentBox) commentBox.rows=20; - addAssignToSelfButton(d); - attachmentDiffLinkify(d); // Mark up history along right hand edge @@ -1073,33 +1071,6 @@ function htmlEncode(str) { .replace('"', '"', 'g'); } -function addAssignToSelfButton(d) { - var userName = getUserName(d); - if (userName) { - // see if the bug is already assigned to the user - var assignee = d.getElementById("assigned_to"); - if (assignee && assignee.value != userName) { - var button = d.createElement("input"); - button.type = "button"; - button.value = "Assign To Me"; - button.addEventListener("click", function(e) { - e.preventDefault(); - assignee.value = userName; - var reset = d.getElementById("set_default_assignee"); - if (reset) { - reset.checked = false; - } - container.classList.add("bz_default_hidden"); - d.getElementById("bz_assignee_input").classList.remove("bz_default_hidden"); - assignee.focus(); - button.removeEventListener("click", arguments.callee, false); - }, false); - var container = d.getElementById("bz_assignee_edit_container"); - container.appendChild(button); - } - } -} - function tbplbotSpamCollapser(d) { var collapseExpandBox = d.querySelector(".bz_collapse_expand_comments"); if (!collapseExpandBox) { |