]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 850309: Allow pasted attachments to be flagged as patches
authorByron Jones <bjones@mozilla.com>
Wed, 13 Mar 2013 13:30:26 +0000 (21:30 +0800)
committerByron Jones <bjones@mozilla.com>
Wed, 13 Mar 2013 13:30:26 +0000 (21:30 +0800)
r=LpSolit, a=LpSolit

js/attachment.js

index 0c1560de08448c49624c726b9e2dbd9360e17569..d9bdabc4eaa22797765f2d508391578b5ab1110a 100644 (file)
@@ -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++) {