Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -386,10 +386,12 @@ |
387 | 387 | var showOnSelectVals = sfgShowOnSelect[this.attr("id")]; |
388 | 388 | var instanceWrapperDiv = null; |
389 | 389 | } |
390 | | - for ( var i = 0; i < showOnSelectVals.length; i++ ) { |
391 | | - var options = showOnSelectVals[i][0]; |
392 | | - var div_id = showOnSelectVals[i][1]; |
393 | | - this.showDivIfChecked(options, div_id, instanceWrapperDiv); |
| 390 | + if ( showOnSelectVals !== undefined ) { |
| 391 | + for ( var i = 0; i < showOnSelectVals.length; i++ ) { |
| 392 | + var options = showOnSelectVals[i][0]; |
| 393 | + var div_id = showOnSelectVals[i][1]; |
| 394 | + this.showDivIfChecked(options, div_id, instanceWrapperDiv); |
| 395 | + } |
394 | 396 | } |
395 | 397 | } |
396 | 398 | |