Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -655,7 +655,7 @@ |
656 | 656 | // register initialization and validation methods for new inputs |
657 | 657 | |
658 | 658 | var sfdata = jQuery("#sfForm").data('SemanticForms'); |
659 | | - if (sfdata) { // found data object? |
| 659 | + if ( sfdata && sfdata.initFunctions[old_id] ) { // found data object? |
660 | 660 | |
661 | 661 | // For every initialization method for |
662 | 662 | // input with id old_id, register the |
— | — | @@ -735,7 +735,7 @@ |
736 | 736 | if (this.id) { |
737 | 737 | |
738 | 738 | var sfdata = jQuery("#sfForm").data('SemanticForms'); |
739 | | - if (sfdata) { // if anything registered at all |
| 739 | + if ( sfdata && sfdata.initFunctions[this.id] ) { // if anything registered at all |
740 | 740 | // Call every initialization method |
741 | 741 | // for this input |
742 | 742 | for ( var i = 0; i < sfdata.initFunctions[this.id].length; i++ ) { |