Index: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -255,7 +255,7 @@ |
256 | 256 | $wgAvailableRights[] = 'stablesettings'; |
257 | 257 | |
258 | 258 | # Bump this number every time you change flaggedrevs.css/flaggedrevs.js |
259 | | -$wgFlaggedRevStyleVersion = 83; |
| 259 | +$wgFlaggedRevStyleVersion = 84; |
260 | 260 | |
261 | 261 | $wgExtensionFunctions[] = 'efLoadFlaggedRevs'; |
262 | 262 | |
Index: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/client/flaggedrevs.js |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | if( checkbox ) { |
166 | 166 | checkbox.onclick = FlaggedRevs.updateSaveButton; |
167 | 167 | } |
168 | | -} |
| 168 | +}; |
169 | 169 | |
170 | 170 | FlaggedRevs.updateSaveButton = function() { |
171 | 171 | var checkbox = document.getElementById("wpReviewEdit"); |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | save.title = FlaggedRevs.messages.tooltipSubmit; |
182 | 182 | } |
183 | 183 | } |
184 | | -} |
| 184 | +}; |
185 | 185 | |
186 | 186 | FlaggedRevs.getRevisionContents = function() { |
187 | 187 | //get the contents div and replace it with actual parsed article contents via an API call. |
— | — | @@ -233,21 +233,21 @@ |
234 | 234 | if ( call ) { |
235 | 235 | call.abort(); |
236 | 236 | } |
237 | | - } |
| 237 | + }; |
238 | 238 | } |
239 | 239 | if ( nextLink ) { |
240 | 240 | nextLink.onclick = function() { |
241 | 241 | if ( call ) { |
242 | 242 | call.abort(); |
243 | 243 | } |
244 | | - } |
| 244 | + }; |
245 | 245 | } |
246 | | -} |
| 246 | +}; |
247 | 247 | |
248 | 248 | FlaggedRevs.setJSTriggers = function() { |
249 | 249 | FlaggedRevs.enableShowhide(); |
250 | 250 | FlaggedRevs.setCheckTrigger(); |
251 | 251 | FlaggedRevs.getRevisionContents(); |
252 | | -} |
| 252 | +}; |
253 | 253 | |
254 | 254 | window.onload = FlaggedRevs.setJSTriggers; |
Index: branches/priyanka-wmf-fixes/extensions/FlaggedRevs/client/review.js |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | |
62 | 62 | // Update colors of <select> |
63 | 63 | FlaggedRevs.updateRatingFormColors(); |
64 | | -} |
| 64 | +}; |
65 | 65 | |
66 | 66 | /* |
67 | 67 | * Disable 'accept' button if the revision was already reviewed |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | asubmit.disabled = 'disabled'; |
75 | 75 | } |
76 | 76 | } |
77 | | -} |
| 77 | +}; |
78 | 78 | |
79 | 79 | hookEvent( "load", FlaggedRevs.maybeDisableAcceptButton ); |
80 | 80 | |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | } |
93 | 93 | } |
94 | 94 | } |
95 | | -} |
| 95 | +}; |
96 | 96 | |
97 | 97 | hookEvent( "load", FlaggedRevs.updateRatingFormColors ); |
98 | 98 | |
— | — | @@ -307,7 +307,7 @@ |
308 | 308 | if( diffHeaderItems && response != '' ) { |
309 | 309 | diffHeaderItems.innerHTML = response; |
310 | 310 | } |
311 | | -} |
| 311 | +}; |
312 | 312 | |
313 | 313 | wgAjaxReview.onLoad = function() { |
314 | 314 | var asubmit = document.getElementById("mw-fr-submit-accept"); |