Index: trunk/extensions/SemanticForms/libs/SF_ajax_form_preview.js |
— | — | @@ -47,13 +47,8 @@ |
48 | 48 | var el = document.getElementById("form_error_header"); |
49 | 49 | if (el) el.parentNode.removeChild(el); |
50 | 50 | |
51 | | - var elts = document.body.getElementsByTagName("span"); |
| 51 | + if (!wkPreview || !form || !aj || !aj2 || !validateAll() ) return; |
52 | 52 | |
53 | | - for (var i = 0; i < elts.length; ++i) |
54 | | - if (elts[i].className == 'errorMessage') elts[i].innerHTML = ''; |
55 | | - |
56 | | - if (!wkPreview || !form || !aj || !aj2 || !validate_all() ) return; |
57 | | - |
58 | 53 | var frag=document.createElement("div"); |
59 | 54 | |
60 | 55 | var htm; |