| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** |
||
| 56 | $(function(){ |
||
| 57 | |||
| 58 | $( '.repeater-title' ).on( 'keyup', function(){ |
||
| 59 | |||
| 60 | var repeater = $(this).parents( '.repeater' ); |
||
| 61 | var fieldval = $(this).val(); |
||
| 62 | |||
| 63 | if ( fieldval.length > 0 ) { |
||
| 64 | |||
| 65 | repeater.find( '.title-repeater' ).text( fieldval ); |
||
| 66 | |||
| 67 | } else { |
||
| 68 | |||
| 69 | repeater.find( '.title-repeater' ).text( nhdata.repeatertitle ); |
||
|
|
|||
| 70 | |||
| 71 | } |
||
| 72 | |||
| 73 | }); |
||
| 74 | |||
| 75 | }); |
||
| 76 | |||
| 91 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.