Index: trunk/phase3/js2/ajaxcategories.js |
— | — | @@ -27,8 +27,8 @@ |
28 | 28 | 'cancel': function() { |
29 | 29 | var req = ajaxCategories.request; |
30 | 30 | if (req.abort) |
31 | | - req.abort() |
32 | | - }, |
| 31 | + req.abort(); |
| 32 | + } |
33 | 33 | } ); |
34 | 34 | |
35 | 35 | $j('#mw-addcategory-input').suggestions(); |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | var dialogOptions = { |
133 | 133 | 'AutoOpen' : true, |
134 | 134 | 'buttons' : buttons, |
135 | | - 'width' : 450, |
| 135 | + 'width' : 450 |
136 | 136 | }; |
137 | 137 | |
138 | 138 | $j('#catlinks').prepend(dialog); |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | 'intoken':'edit', |
150 | 150 | 'titles':page, |
151 | 151 | 'rvprop':'content|timestamp', |
152 | | - 'format':'json', |
| 152 | + 'format':'json' |
153 | 153 | }; |
154 | 154 | |
155 | 155 | $j.get(wgScriptPath+'/api.php', getTokenVars, |
— | — | @@ -172,7 +172,7 @@ |
173 | 173 | 'summary':summary, |
174 | 174 | 'token':token, |
175 | 175 | 'basetimestamp':timestamp, |
176 | | - 'format':'json', |
| 176 | + 'format':'json' |
177 | 177 | }; |
178 | 178 | |
179 | 179 | $j.post( wgScriptPath+'/api.php', postEditVars, doneFn, 'json' ); |
— | — | @@ -266,11 +266,13 @@ |
267 | 267 | $j('#bodyContent').append(dialog); |
268 | 268 | |
269 | 269 | var buttons = {}; |
270 | | - buttons[gM('ajax-error-dismiss')] = function(e) { dialog.dialog('close'); }; |
| 270 | + buttons[gM('ajax-error-dismiss')] = function(e) { |
| 271 | + dialog.dialog('close'); |
| 272 | + }; |
271 | 273 | var dialogOptions = { |
272 | 274 | 'buttons' : buttons, |
273 | 275 | 'AutoOpen' : true, |
274 | | - 'title' : gM('ajax-error-title'), |
| 276 | + 'title' : gM('ajax-error-title') |
275 | 277 | }; |
276 | 278 | |
277 | 279 | dialog.dialog(dialogOptions); |
— | — | @@ -318,7 +320,7 @@ |
319 | 321 | } ); |
320 | 322 | |
321 | 323 | clElement.append(promptContainer); |
322 | | - }, |
| 324 | + } |
323 | 325 | }; |
324 | 326 | |
325 | 327 | js2AddOnloadHook( ajaxCategories.setupAJAXCategories ); |