aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-13 21:30:26 +0800
committerByron Jones <bjones@mozilla.com>2013-03-13 21:30:26 +0800
commit748152ed2d61ca24dda49fa9c6f18d547229eeeb (patch)
treec7b2c88b729c0e9088fc302364dd8c3eaf1e7053 /js
parentBug 850126 - 'token' id defined twice on logged-out pages (in header and footer) (diff)
downloadbugzilla-748152ed2d61ca24dda49fa9c6f18d547229eeeb.tar.gz
bugzilla-748152ed2d61ca24dda49fa9c6f18d547229eeeb.tar.bz2
bugzilla-748152ed2d61ca24dda49fa9c6f18d547229eeeb.zip
Bug 850309: Allow pasted attachments to be flagged as patches
r=LpSolit, a=LpSolit
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 0c1560de0..d9bdabc4e 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -24,13 +24,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;
@@ -39,9 +38,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++) {