mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Updated form editor's javascript to work with SSViewer-generated comments
This commit is contained in:
parent
7dbc05ba50
commit
197df65f2b
@ -24,6 +24,7 @@ FieldEditor.prototype = {
|
|||||||
var i, j, div, field, editables = fieldEditor.childNodes;
|
var i, j, div, field, editables = fieldEditor.childNodes;
|
||||||
|
|
||||||
for( i = 0; div = editables[i]; i++ ) {
|
for( i = 0; div = editables[i]; i++ ) {
|
||||||
|
if(div.getElementsByTagName) {
|
||||||
var fields = div.getElementsByTagName('input');
|
var fields = div.getElementsByTagName('input');
|
||||||
/*fields[fields.length - 1].value = i;*/
|
/*fields[fields.length - 1].value = i;*/
|
||||||
for( j = 0; field = fields.item(j); j++ ) {
|
for( j = 0; field = fields.item(j); j++ ) {
|
||||||
@ -33,6 +34,7 @@ FieldEditor.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
beforeSave: function() {
|
beforeSave: function() {
|
||||||
var fieldEditor = $('Fields_fields');
|
var fieldEditor = $('Fields_fields');
|
||||||
|
Loading…
Reference in New Issue
Block a user