r78167 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78166‎ | r78167 | r78168 >
Date:03:32, 10 December 2010
Author:yaron
Status:deferred
Tags:
Comment:
Updated code to work with SF's new Javascript
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SF_ajax_form_preview.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SF_ajax_form_preview.js
@@ -47,13 +47,8 @@
4848 var el = document.getElementById("form_error_header");
4949 if (el) el.parentNode.removeChild(el);
5050
51 - var elts = document.body.getElementsByTagName("span");
 51+ if (!wkPreview || !form || !aj || !aj2 || !validateAll() ) return;
5252
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 -
5853 var frag=document.createElement("div");
5954
6055 var htm;

Status & tagging log