Bug 372997 - "JavaScript warnings in attachment.js" (part II) [p=reed r=timeless a=mkanat]

This commit is contained in:
reed%reedloden.com 2007-03-07 07:59:33 +00:00
Родитель b6dd67ac6d
Коммит 125cf0e0a1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,7 +49,7 @@ function URLFieldHandler() {
"list", "manual", "bigfile", "list", "manual", "bigfile",
"contenttypeselection", "contenttypeselection",
"contenttypeentry"); "contenttypeentry");
var i; var i, thisfield;
if (field_attachurl.value.match(/^\s*$/)) { if (field_attachurl.value.match(/^\s*$/)) {
for (i = 0; i < greyfields.length; i++) { for (i = 0; i < greyfields.length; i++) {
thisfield = document.getElementById(greyfields[i]); thisfield = document.getElementById(greyfields[i]);
@ -70,8 +70,8 @@ function URLFieldHandler() {
function DataFieldHandler() { function DataFieldHandler() {
var field_data = document.getElementById("data"); var field_data = document.getElementById("data");
var greyfields = new Array("attachurl"); var greyfields = new Array("attachurl");
var i, thisfield;
if (field_data.value.match(/^\s*$/)) { if (field_data.value.match(/^\s*$/)) {
var i;
for (i = 0; i < greyfields.length; i++) { for (i = 0; i < greyfields.length; i++) {
thisfield = document.getElementById(greyfields[i]); thisfield = document.getElementById(greyfields[i]);
if (thisfield) { if (thisfield) {