summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/attachment.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/attachment.js b/js/attachment.js
index 467dda113..eb42ba492 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -49,7 +49,7 @@ function URLFieldHandler() {
"list", "manual", "bigfile",
"contenttypeselection",
"contenttypeentry");
- var i;
+ var i, thisfield;
if (field_attachurl.value.match(/^\s*$/)) {
for (i = 0; i < greyfields.length; i++) {
thisfield = document.getElementById(greyfields[i]);
@@ -70,8 +70,8 @@ function URLFieldHandler() {
function DataFieldHandler() {
var field_data = document.getElementById("data");
var greyfields = new Array("attachurl");
+ var i, thisfield;
if (field_data.value.match(/^\s*$/)) {
- var i;
for (i = 0; i < greyfields.length; i++) {
thisfield = document.getElementById(greyfields[i]);
if (thisfield) {