r61982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61981‎ | r61982 | r61983 >
Date:18:10, 4 February 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added Stephan Gambke's fix for mandatory radiobuttons
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormUtils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.inc
@@ -95,7 +95,7 @@
9696 // is the first radiobutton, which has value of "None"
9797 function validate_mandatory_radiobutton(none_button_id, info_id) {
9898 none_button = document.getElementById(none_button_id);
99 - if (none_button.checked) {
 99+ if (none_button && none_button.checked) {
100100 infobox = document.getElementById(info_id);
101101 infobox.innerHTML = "$blank_error_str";
102102 return false;

Status & tagging log