Index: trunk/extensions/FlaggedRevs/client/flaggedrevs.js |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | if( checkbox ) { |
162 | 162 | checkbox.onclick = FlaggedRevs.updateSaveButton; |
163 | 163 | } |
164 | | -} |
| 164 | +}; |
165 | 165 | |
166 | 166 | FlaggedRevs.updateSaveButton = function() { |
167 | 167 | var checkbox = document.getElementById("wpReviewEdit"); |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | save.title = FlaggedRevs.messages.tooltipSubmit; |
178 | 178 | } |
179 | 179 | } |
180 | | -} |
| 180 | +}; |
181 | 181 | |
182 | 182 | FlaggedRevs.getRevisionContents = function() { |
183 | 183 | //get the contents div and replace it with actual parsed article contents via an API call. |
— | — | @@ -228,13 +228,13 @@ |
229 | 229 | } |
230 | 230 | } |
231 | 231 | } |
232 | | -} |
| 232 | +}; |
233 | 233 | |
234 | 234 | FlaggedRevs.setJSTriggers = function() { |
235 | 235 | FlaggedRevs.enableShowhide(); |
236 | 236 | FlaggedRevs.setCheckTrigger(); |
237 | 237 | FlaggedRevs.getRevisionContents(); |
238 | | -} |
| 238 | +}; |
239 | 239 | |
240 | 240 | //TODO figure out the correct way to do this |
241 | 241 | window.onload = FlaggedRevs.setJSTriggers; |
Index: trunk/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 | |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | if( diffHeaderItems && response != '' ) { |
311 | 311 | diffHeaderItems.innerHTML = response; |
312 | 312 | } |
313 | | -} |
| 313 | +}; |
314 | 314 | |
315 | 315 | wgAjaxReview.onLoad = function() { |
316 | 316 | var asubmit = document.getElementById("mw-fr-submit-accept"); |