summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-13 14:35:24 +0100
committerByron Jones <bjones@mozilla.com>2013-03-13 14:35:24 +0100
commit2468425cbde40537364f5e20a4317783903e26e8 (patch)
tree0f2be28f6acfa88b668eb9b267de7cf163b64356 /js
parent409da2ad3a4a675056b37fa7037ff18979b1fa9c (diff)
downloadbugzilla-2468425cbde40537364f5e20a4317783903e26e8.tar.gz
bugzilla-2468425cbde40537364f5e20a4317783903e26e8.tar.xz
Bug 850309: Allow pasted attachments to be flagged as patches
Diffstat (limited to 'js')
-rw-r--r--js/attachment.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/attachment.js b/js/attachment.js
index 7861164b1..f967f64d3 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -40,13 +40,12 @@ function updateCommentPrivacy(checkbox) {
}
}
-function setContentTypeDisabledState(form)
-{
+function setContentTypeDisabledState(form) {
var isdisabled = false;
if (form.ispatch.checked)
isdisabled = true;
- for (var i=0 ; i<form.contenttypemethod.length ; i++)
+ for (var i = 0; i < form.contenttypemethod.length; i++)
form.contenttypemethod[i].disabled = isdisabled;
form.contenttypeselection.disabled = isdisabled;
@@ -55,9 +54,8 @@ function setContentTypeDisabledState(form)
function TextFieldHandler() {
var field_text = document.getElementById("attach_text");
- var greyfields = new Array("data", "ispatch", "autodetect",
- "list", "manual", "contenttypeselection",
- "contenttypeentry");
+ var greyfields = new Array("data", "autodetect", "list", "manual",
+ "contenttypeselection", "contenttypeentry");
var i, thisfield;
if (field_text.value.match(/^\s*$/)) {
for (i = 0; i < greyfields.length; i++) {