http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76399
Revision: 76399 Author: yaron Date: 2010-11-09 17:48:36 +0000 (Tue, 09 Nov 2010) Log Message: ----------- Added check for nonexistent div IDs in "show on select" Modified Paths: -------------- trunk/extensions/SemanticForms/libs/SemanticForms.js Modified: trunk/extensions/SemanticForms/libs/SemanticForms.js =================================================================== --- trunk/extensions/SemanticForms/libs/SemanticForms.js 2010-11-09 17:46:49 UTC (rev 76398) +++ trunk/extensions/SemanticForms/libs/SemanticForms.js 2010-11-09 17:48:36 UTC (rev 76399) @@ -214,6 +214,7 @@ function showIfSelected(input_id, options_array, div_id) { the_input = document.getElementById(input_id); the_div = document.getElementById(div_id); + if ( the_div == null ) { return; } for (var i in options_array) { if (the_input.value == options_array[i]) { the_div.style.display = ''; // return to default _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs