diff options
author | reed%reedloden.com <> | 2007-03-07 13:59:33 +0000 |
---|---|---|
committer | reed%reedloden.com <> | 2007-03-07 13:59:33 +0000 |
commit | 532eabdeb2ddea30e778bd0cf72cd579778ec9e2 (patch) | |
tree | 881e19be8492628410140df7b1f4fcf79f5bb7b6 /js | |
parent | a86c4419c49f98064ac3f351d1b173081a6ce75d (diff) | |
download | bugs-532eabdeb2ddea30e778bd0cf72cd579778ec9e2.tar bugs-532eabdeb2ddea30e778bd0cf72cd579778ec9e2.tar.gz bugs-532eabdeb2ddea30e778bd0cf72cd579778ec9e2.tar.bz2 bugs-532eabdeb2ddea30e778bd0cf72cd579778ec9e2.tar.xz bugs-532eabdeb2ddea30e778bd0cf72cd579778ec9e2.zip |
Bug 372997 - "JavaScript warnings in attachment.js" (part II) [p=reed r=timeless a=mkanat]
Diffstat (limited to 'js')
-rw-r--r-- | js/attachment.js | 4 |
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) { |