Index: trunk/extensions/SemanticWatchlist/specials/jquery.watchlistcondition.js |
— | — | @@ -163,29 +163,29 @@ |
164 | 164 | } |
165 | 165 | } ) |
166 | 166 | ); |
167 | | - } |
| 167 | + }; |
168 | 168 | |
169 | 169 | this.addPropertyDiv = function( property ) { |
170 | 170 | var propDiv = $( '<div />' ).attr( 'class', 'propid' ); |
171 | | - |
| 171 | + |
172 | 172 | var propInput = $( '<input />' ).attr( { |
173 | 173 | 'type': 'text', |
174 | 174 | 'value': property, |
175 | 175 | 'size': 30, |
176 | 176 | 'class': 'swl-group-prop' |
177 | 177 | } ); |
178 | | - |
| 178 | + |
179 | 179 | var removeButton = $( '<input />' ).attr( { |
180 | 180 | 'type': 'button', |
181 | 181 | 'value': mediaWiki.msg( 'swl-group-remove-property' ) |
182 | 182 | } ); |
183 | | - |
| 183 | + |
184 | 184 | removeButton.click( function() { |
185 | 185 | propDiv.remove(); |
186 | 186 | } ); |
187 | | - |
| 187 | + |
188 | 188 | this.propsDiv.append( propDiv.html( propInput ).append( ' ' ).append( removeButton ) ); |
189 | | - } |
| 189 | + }; |
190 | 190 | |
191 | 191 | this.getProperties = function() { |
192 | 192 | var props = []; |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | } ); |
197 | 197 | |
198 | 198 | return props; |
199 | | - } |
| 199 | + }; |
200 | 200 | |
201 | 201 | this.doSave = function( callback ) { |
202 | 202 | var args = { |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | callback( data.success ); |
217 | 217 | } |
218 | 218 | ); |
219 | | - } |
| 219 | + }; |
220 | 220 | |
221 | 221 | this.doDelete = function( callback ) { |
222 | 222 | $.getJSON( |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | callback( data.success ); |
231 | 231 | } |
232 | 232 | ); |
233 | | - } |
| 233 | + }; |
234 | 234 | |
235 | 235 | this.buildHtml(); |
236 | 236 | |