Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | * Click Event for marking an item as helpful. |
110 | 110 | */ |
111 | 111 | $( '.markashelpful-mark' ).live( 'click', function() { |
112 | | - $item = $( this ).parent().parent(); |
| 112 | + var $item = $( this ).parent().parent(); |
113 | 113 | mah.markItem( $item, 'mark' ); |
114 | 114 | } ); |
115 | 115 | |
— | — | @@ -116,7 +116,7 @@ |
117 | 117 | * Click Event for removing helpful status from an item. |
118 | 118 | */ |
119 | 119 | $( '.markashelpful-undo' ).live( 'click', function() { |
120 | | - $item = $( this ).parent().parent(); |
| 120 | + var $item = $( this ).parent().parent(); |
121 | 121 | mah.markItem( $item, 'unmark' ); |
122 | 122 | } ); |
123 | 123 | |
— | — | @@ -136,5 +136,5 @@ |
137 | 137 | }; |
138 | 138 | |
139 | 139 | // Initialize MarkAsHelpful |
140 | | - mah.init(); |
141 | | -} ) ( jQuery ); |
\ No newline at end of file |
| 140 | + $( mah.init ); |
| 141 | +} ) ( jQuery ); |