r109738 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109737‎ | r109738 | r109739 >
Date:15:08, 22 January 2012
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (js error when using textarea etc. without autocompletion)
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SemanticForms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SemanticForms.js
@@ -130,6 +130,11 @@
131131 // attribute. This should probably be done as three separate attributes,
132132 // instead.
133133 var field_string = jQuery(this).attr("autocompletesettings");
 134+
 135+ if ( typeof field_string === 'undefined' ) {
 136+ return;
 137+ }
 138+
134139 var field_values = field_string.split(',');
135140 var delimiter = null;
136141 var data_source = field_values[0];