Updated form editor's javascript to work with SSViewer-generated comments

This commit is contained in:
Sam Minnee 2008-11-25 03:53:21 +00:00
parent 7dbc05ba50
commit 197df65f2b

View File

@ -24,6 +24,7 @@ FieldEditor.prototype = {
var i, j, div, field, editables = fieldEditor.childNodes;
for( i = 0; div = editables[i]; i++ ) {
if(div.getElementsByTagName) {
var fields = div.getElementsByTagName('input');
/*fields[fields.length - 1].value = i;*/
for( j = 0; field = fields.item(j); j++ ) {
@ -33,6 +34,7 @@ FieldEditor.prototype = {
}
}
}
}
},
beforeSave: function() {
var fieldEditor = $('Fields_fields');