Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/flaggedrevs.css |
— | — | @@ -1,352 +0,0 @@ |
2 | | -/* Every time you change this CSS please bump $wgFlaggedRevStyleVersion in FlaggedRevs.php */ |
3 | | - |
4 | | -/* Standard User Interface */ |
5 | | -.flaggedrevs_basic, |
6 | | -.flaggedrevs_quality, |
7 | | -.flaggedrevs_pristine, |
8 | | -.flaggedrevs_notice, |
9 | | -.flaggedrevs_editnotice, |
10 | | -.flaggedrevs_diffnotice, |
11 | | -.flaggedrevs_warning, |
12 | | -.flaggedrevs_preview { |
13 | | - border: 1px solid #aaa; |
14 | | - padding: 5px; |
15 | | - font-weight: normal; |
16 | | - line-height: 1.5em; |
17 | | - margin: .5em 1em 0em 0em; |
18 | | - text-align: center; |
19 | | - clear: both; |
20 | | -} |
21 | | - |
22 | | -.flaggedrevs_basic { |
23 | | - background-color: #f0f8ff; |
24 | | -} |
25 | | -.flaggedrevs_quality { |
26 | | - background-color: #f0fff0; |
27 | | -} |
28 | | -.flaggedrevs_pristine { |
29 | | - background-color: #fffff0; |
30 | | -} |
31 | | -.flaggedrevs_notice { |
32 | | - background-color: #f9f9f9; |
33 | | -} |
34 | | -.flaggedrevs_preview { |
35 | | - background-color: #f9f9f9; |
36 | | - color: #8b0000; |
37 | | -} |
38 | | - |
39 | | -.flaggedrevs_warning { |
40 | | - font-size: 85%; |
41 | | - background-color: #fffff0; |
42 | | - margin: 0em 1em 0em 0em; |
43 | | -} |
44 | | -.flaggedrevs_editnotice { |
45 | | - font-size: 85%; |
46 | | - background-color: #f9f9f9; |
47 | | -} |
48 | | -.flaggedrevs_diffnotice { |
49 | | - font-size: 85%; |
50 | | - background-color: #f9f9f9; |
51 | | -} |
52 | | - |
53 | | -.flaggedrevs_notes { |
54 | | - border: 1px solid #aaa; |
55 | | - background-color: #f9f9f9; |
56 | | - padding: 5px; |
57 | | - font-size: 85%; |
58 | | - margin-left: 50px; |
59 | | - margin-right: 50px; |
60 | | - text-align: center; |
61 | | -} |
62 | | - |
63 | | -.fr-text-value { |
64 | | - width: 100px; |
65 | | -} |
66 | | - |
67 | | -.fr-checkbox { |
68 | | - padding: 0px; |
69 | | - width: 16px; |
70 | | - height: 16px; |
71 | | - position: relative; |
72 | | - float: left; |
73 | | - top: 0px; |
74 | | - right: 0px; |
75 | | - background-repeat: no-repeat; |
76 | | - background-position: 0px 0px; |
77 | | - background-image: url(../FlaggedRevs/img/boxC.png); |
78 | | -} |
79 | | - |
80 | | -.fr-marker-20, |
81 | | -.fr-marker-40, |
82 | | -.fr-marker-60, |
83 | | -.fr-marker-80, |
84 | | -.fr-marker-100 { |
85 | | - background-position: bottom left; |
86 | | - background-repeat: no-repeat; |
87 | | - padding-bottom: 3px; |
88 | | -} |
89 | | - |
90 | | -.fr-marker-20 { |
91 | | - background-image: url(../FlaggedRevs/img/bar_20.png); |
92 | | -} |
93 | | -.fr-marker-40 { |
94 | | - background-image: url(../FlaggedRevs/img/bar_40.png); |
95 | | -} |
96 | | -.fr-marker-60 { |
97 | | - background-image: url(../FlaggedRevs/img/bar_60.png); |
98 | | -} |
99 | | -.fr-marker-80 { |
100 | | - background-image: url(../FlaggedRevs/img/bar_80.png); |
101 | | -} |
102 | | -.fr-marker-100 { |
103 | | - background-image: url(../FlaggedRevs/img/bar_100.png); |
104 | | -} |
105 | | - |
106 | | -/* Short User Interface */ |
107 | | -.flaggedrevs_short { |
108 | | - border: 0px; |
109 | | - background-color: #f9f9f9; |
110 | | - padding: 1px; |
111 | | - font-size: 95%; |
112 | | - font-weight: normal; |
113 | | - margin: 0em 0em 0em 1em; |
114 | | - float: right; |
115 | | - text-align: left; |
116 | | - max-width: 450px; |
117 | | - line-height: 16px; |
118 | | -} |
119 | | - |
120 | | -.rtl .flaggedrevs_short { |
121 | | - float: left; |
122 | | - margin: 0 1em 0 0; |
123 | | -} |
124 | | - |
125 | | -.fr-text { |
126 | | - height: 1em; |
127 | | - line-height: 1em; |
128 | | - margin: 0px 7px 0px 0px; |
129 | | - padding: 0px; |
130 | | - font-weight: bold; |
131 | | - width: 80px; |
132 | | -} |
133 | | - |
134 | | -.fr-value20, |
135 | | -.fr-value40, |
136 | | -.fr-value60, |
137 | | -.fr-value80, |
138 | | -.fr-value100 { |
139 | | - height: 1em; |
140 | | - line-height: 1em; |
141 | | - width: 95px; |
142 | | - float: left; |
143 | | - background-repeat: no-repeat; |
144 | | - background-position: 50% 50%; |
145 | | - text-align: center; |
146 | | -} |
147 | | - |
148 | | -.fr-value20 { |
149 | | - background-image: url(../FlaggedRevs/img/fr-marker-20.png); |
150 | | -} |
151 | | -.fr-value40 { |
152 | | - background-image: url(../FlaggedRevs/img/fr-marker-40.png); |
153 | | -} |
154 | | -.fr-value60 { |
155 | | - background-image: url(../FlaggedRevs/img/fr-marker-60.png); |
156 | | -} |
157 | | -.fr-value80 { |
158 | | - background-image: url(../FlaggedRevs/img/fr-marker-80.png); |
159 | | -} |
160 | | -.fr-value100 { |
161 | | - background-image: url(../FlaggedRevs/img/fr-marker-100.png); |
162 | | -} |
163 | | - |
164 | | -.flaggedrevs-box0, |
165 | | -.flaggedrevs-box1, |
166 | | -.flaggedrevs-box2, |
167 | | -.flaggedrevs-box3 { |
168 | | - border: 1px solid #aaa; |
169 | | - text-align: center; |
170 | | - font-size: 85%; |
171 | | - clear: both; |
172 | | -} |
173 | | - |
174 | | -.flaggedrevs-box0 { |
175 | | - background-color: #f9f9f9; |
176 | | -} |
177 | | -.flaggedrevs-box1 { |
178 | | - background-color: #f0f8ff; |
179 | | -} |
180 | | -.flaggedrevs-box2 { |
181 | | - background-color: #f0fff0; |
182 | | -} |
183 | | -.flaggedrevs-box3 { |
184 | | - background-color: #fffff0; |
185 | | -} |
186 | | - |
187 | | -/* Both User Interfaces */ |
188 | | -.flaggedrevs-color-0 { |
189 | | - background-color: #f9f9f9; |
190 | | -} |
191 | | -.flaggedrevs-color-1 { |
192 | | - background-color: #f0f8ff; |
193 | | -} |
194 | | -.flaggedrevs-color-2 { |
195 | | - background-color: #f0fff0; |
196 | | -} |
197 | | -.flaggedrevs-color-3 { |
198 | | - background-color: #fffff0; |
199 | | -} |
200 | | - |
201 | | -.flaggedrevs-unreviewed { |
202 | | - background-color: #fffff0; |
203 | | -} |
204 | | - |
205 | | -.flaggedrevs-unreviewed2 { |
206 | | - background-color: #faebd7; |
207 | | -} |
208 | | - |
209 | | -.flaggedrevs_toggle { |
210 | | - color: blue; |
211 | | - white-space: nowrap; |
212 | | - cursor:pointer; |
213 | | -} |
214 | | - |
215 | | -.fr-icon-current, |
216 | | -.fr-icon-stable, |
217 | | -.fr-icon-quality, |
218 | | -.fr-icon-locked, |
219 | | -.fr-icon-unlocked { |
220 | | - padding: 0px; |
221 | | - margin: 0em .2em 0em 0em; |
222 | | - width: 16px; |
223 | | - height: 16px; |
224 | | - float: left; |
225 | | - background-repeat: no-repeat; |
226 | | - background-position: center center; |
227 | | -} |
228 | | -.fr-icon-current { |
229 | | - background-image: url(../FlaggedRevs/img/1.png); |
230 | | -} |
231 | | -.fr-icon-stable { |
232 | | - background-image: url(../FlaggedRevs/img/2.png); |
233 | | -} |
234 | | -.fr-icon-quality { |
235 | | - background-image: url(../FlaggedRevs/img/3.png); |
236 | | -} |
237 | | -.fr-icon-locked { |
238 | | - background-image: url(../FlaggedRevs/img/lock-closed.png); |
239 | | -} |
240 | | -.fr-icon-unlocked { |
241 | | - width: 23px; |
242 | | - background-image: url(../FlaggedRevs/img/lock-open.png); |
243 | | -} |
244 | | - |
245 | | -.fr-diff-ratings { |
246 | | - font-size: 90%; |
247 | | - line-height: 1em; |
248 | | -} |
249 | | - |
250 | | -.fr-diff-to-stable { |
251 | | - line-height: 1em; |
252 | | -} |
253 | | - |
254 | | -.fr-hist-stable-user, |
255 | | -.fr-hist-quality-user, |
256 | | -.fr-hist-autoreviewed { |
257 | | - font-weight: bold; |
258 | | -} |
259 | | - |
260 | | -/* Site notices */ |
261 | | -.fr-backlognotice { |
262 | | - padding: 3px; |
263 | | - margin: 5px; |
264 | | - border: 1px solid #990000; |
265 | | - background-color: #f5ecec; |
266 | | -} |
267 | | -.fr-watchlist-old-notice { |
268 | | - padding: 3px; |
269 | | - margin: 5px; |
270 | | - border: 1px solid #990000; |
271 | | - background-color: #FEECD7; |
272 | | -} |
273 | | - |
274 | | -/* Special pages */ |
275 | | -.fr-pending-long { |
276 | | - background-color: #f5ecec; |
277 | | -} |
278 | | -.fr-pending-long2 { |
279 | | - background-color: #f5dddd; |
280 | | -} |
281 | | -.fr-pending-long3 { |
282 | | - background-color: #e2caca; |
283 | | -} |
284 | | - |
285 | | -.fr-unreviewed-unwatched { |
286 | | - background-color: #faebd7; |
287 | | -} |
288 | | - |
289 | | -.fr-under-review { |
290 | | - background-color: yellow; |
291 | | -} |
292 | | - |
293 | | -/* Review form */ |
294 | | -.flaggedrevs_reviewform { |
295 | | - background-color: #f9f9f9; |
296 | | - font-size: 90%; |
297 | | - clear: both; |
298 | | -} |
299 | | - |
300 | | -.fr-rating-controls, |
301 | | -.fr-rating-controls-disabled { |
302 | | - vertical-align: middle; |
303 | | - line-height: 1em; |
304 | | -} |
305 | | - |
306 | | -.fr-rating-controls-disabled { |
307 | | - color: GrayText; |
308 | | -} |
309 | | - |
310 | | -.fr-rating-options { |
311 | | - margin-right: 1.5em; |
312 | | -} |
313 | | - |
314 | | -.fr-rating-option-0 { |
315 | | - background-color: #f5ecec; |
316 | | -} |
317 | | -.fr-rating-option-1 { |
318 | | - background-color: #f0f8ff; |
319 | | -} |
320 | | -.fr-rating-option-2 { |
321 | | - background-color: #f0fff0; |
322 | | -} |
323 | | -.fr-rating-option-3 { |
324 | | - background-color: #fef0db; |
325 | | -} |
326 | | -.fr-rating-option-4 { |
327 | | - background-color: #fffff0; |
328 | | -} |
329 | | - |
330 | | -.fr-diff-patrollink { |
331 | | - text-align: center; |
332 | | -} |
333 | | - |
334 | | -.fr-notes-box { |
335 | | - width: 95%; |
336 | | - margin: 0em 1em 0em .5em; |
337 | | -} |
338 | | - |
339 | | -.fr-comment-box { |
340 | | - margin-top: .25em; |
341 | | -} |
342 | | - |
343 | | -.fr-rating-dave { |
344 | | - background-color: #E0ECF8; |
345 | | -} |
346 | | - |
347 | | -.fr-rating-rave { |
348 | | - background-color: #E0F8EC; |
349 | | -} |
350 | | - |
351 | | -.fr-hiddenform { |
352 | | - display: none; |
353 | | -} |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/flaggedrevs.js |
— | — | @@ -1,237 +0,0 @@ |
2 | | -/* -- (c) Aaron Schulz, Daniel Arnold 2008 */ |
3 | | - |
4 | | -/* Every time you change this JS please bump $wgFlaggedRevStyleVersion in FlaggedRevs.php */ |
5 | | - |
6 | | -/* Hide rating clutter */ |
7 | | -function enable_showhide() { |
8 | | - var toggle = document.getElementById('mw-revisiontoggle'); |
9 | | - if( !toggle ) return; |
10 | | - toggle.style.display = 'inline'; |
11 | | - var ratings = document.getElementById('mw-revisionratings'); |
12 | | - if( !ratings ) return; |
13 | | - ratings.style.display = 'none'; |
14 | | -} |
15 | | - |
16 | | -/* Toggles ratings */ |
17 | | -function toggleRevRatings() { |
18 | | - var ratings = document.getElementById('mw-revisionratings'); |
19 | | - if( !ratings ) return; |
20 | | - if( ratings.style.display == 'none' ) { |
21 | | - ratings.style.display = 'inline'; |
22 | | - } else { |
23 | | - ratings.style.display = 'none'; |
24 | | - } |
25 | | -} |
26 | | - |
27 | | -/* |
28 | | -* a) Disable submit in case of invalid input. |
29 | | -* b) Update colors when select changes (Opera already does this). |
30 | | -* c) Also remove comment box clutter in case of invalid input. |
31 | | -*/ |
32 | | -function updateRatingForm() { |
33 | | - var ratingform = document.getElementById('mw-ratingselects'); |
34 | | - if( !ratingform ) return; |
35 | | - var disabled = document.getElementById('fr-rating-controls-disabled'); |
36 | | - if( disabled ) return; |
37 | | - |
38 | | - var quality = true; |
39 | | - var allzero = true; |
40 | | - var somezero = false; |
41 | | - |
42 | | - for( tag in wgFlaggedRevsParams.tags ) { |
43 | | - var controlName = "wp" + tag; |
44 | | - var levels = document.getElementsByName(controlName); |
45 | | - var selectedlevel = 0; // default |
46 | | - |
47 | | - if( levels[0].nodeName == 'SELECT' ) { |
48 | | - selectedlevel = levels[0].selectedIndex; |
49 | | - // Update color. Opera does this already, and doing so |
50 | | - // seems to kill custom pretty opera skin form styling. |
51 | | - if( navigator.appName != 'Opera') { |
52 | | - value = levels[0].getElementsByTagName('option')[selectedlevel].value; |
53 | | - levels[0].className = 'fr-rating-option-' + value; |
54 | | - } |
55 | | - } else if( levels[0].type == 'radio' ) { |
56 | | - for( i = 0; i < levels.length; i++ ) { |
57 | | - if( levels[i].checked ) { |
58 | | - selectedlevel = i; |
59 | | - break; |
60 | | - } |
61 | | - } |
62 | | - } else if( levels[0].type == 'checkbox' ) { |
63 | | - selectedlevel = (levels[0].checked) ? 1: 0; |
64 | | - } else { |
65 | | - return; // error: should not happen |
66 | | - } |
67 | | - |
68 | | - // Get quality level for this tag |
69 | | - qualityLevel = wgFlaggedRevsParams.tags[tag]; |
70 | | - |
71 | | - if( selectedlevel < qualityLevel ) { |
72 | | - quality = false; // not a quality review |
73 | | - } |
74 | | - if( selectedlevel > 0 ) { |
75 | | - allzero = false; |
76 | | - } else { |
77 | | - somezero = true; |
78 | | - } |
79 | | - } |
80 | | - // Show note box only for quality revs |
81 | | - var notebox = document.getElementById('mw-notebox'); |
82 | | - if( notebox ) { |
83 | | - notebox.style.display = quality ? 'inline' : 'none'; |
84 | | - } |
85 | | - // If only a few levels are zero, don't show submit link |
86 | | - var submit = document.getElementById('submitreview'); |
87 | | - submit.disabled = ( somezero && !allzero ) ? 'disabled' : ''; |
88 | | - // Clear note box data if not shown |
89 | | - var notes = document.getElementById('wpNotes'); |
90 | | - if( notes ) { |
91 | | - notes.value = quality ? notes.value : ''; |
92 | | - } |
93 | | -} |
94 | | - |
95 | | -addOnloadHook(enable_showhide); |
96 | | -addOnloadHook(updateRatingForm); |
97 | | - |
98 | | -// dependencies: |
99 | | -// * ajax.js: |
100 | | - /*extern sajax_init_object, sajax_do_call */ |
101 | | -// * wikibits.js: |
102 | | - /*extern hookEvent, jsMsg */ |
103 | | -// These should have been initialized in the generated js |
104 | | -if( typeof wgAjaxReview === "undefined" || !wgAjaxReview ) { |
105 | | - wgAjaxReview = { |
106 | | - sendingMsg: "Submitting...", |
107 | | - sentMsgOk: "Review complete!", |
108 | | - sentMsgBad: "Review failed!", |
109 | | - actioncomplete: "Action complete", |
110 | | - actionfailed: "Action failed" |
111 | | - }; |
112 | | -} |
113 | | - |
114 | | -wgAjaxReview.supported = true; // supported on current page and by browser |
115 | | -wgAjaxReview.inprogress = false; // ajax request in progress |
116 | | -wgAjaxReview.timeoutID = null; // see wgAjaxReview.ajaxCall |
117 | | - |
118 | | -wgAjaxReview.ajaxCall = function() { |
119 | | - if( !wgAjaxReview.supported ) { |
120 | | - return true; |
121 | | - } else if( wgAjaxReview.inprogress ) { |
122 | | - return false; |
123 | | - } |
124 | | - if( !wfSupportsAjax() ) { |
125 | | - // Lazy initialization so we don't toss up |
126 | | - // ActiveX warnings on initial page load |
127 | | - // for IE 6 users with security settings. |
128 | | - wgAjaxReview.supported = false; |
129 | | - return true; |
130 | | - } |
131 | | - var form = document.getElementById("mw-reviewform"); |
132 | | - var notes = document.getElementById("wpNotes"); |
133 | | - var reason = document.getElementById("wpReason"); |
134 | | - if( !form ) { |
135 | | - return false; |
136 | | - } |
137 | | - wgAjaxReview.inprogress = true; |
138 | | - // Build up arguments |
139 | | - var args = []; |
140 | | - var inputs = form.getElementsByTagName("input"); |
141 | | - for( var i=0; i < inputs.length; i++) { |
142 | | - // Different input types may occur depending on tags... |
143 | | - if( inputs[i].name == "title" || inputs[i].name == "action" ) { |
144 | | - // No need to send these... |
145 | | - } else if( inputs[i].type == "submit" ) { |
146 | | - inputs[i].value = wgAjaxReview.sendingMsg; |
147 | | - } else if( inputs[i].type == "checkbox" ) { |
148 | | - args.push( inputs[i].name + "|" + (inputs[i].checked ? 1 : 0) ); |
149 | | - } else if( inputs[i].type != "radio" || inputs[i].checked ) { |
150 | | - args.push( inputs[i].name + "|" + inputs[i].value ); |
151 | | - } |
152 | | - inputs[i].disabled = "disabled"; |
153 | | - } |
154 | | - if( notes ) { |
155 | | - args.push( notes.name + "|" + notes.value ); |
156 | | - notes.disabled = "disabled"; |
157 | | - } |
158 | | - var selects = form.getElementsByTagName("select"); |
159 | | - for( var i=0; i < selects.length; i++) { |
160 | | - // Get the selected tag level... |
161 | | - if( selects[i].selectedIndex >= 0 ) { |
162 | | - var soption = selects[i].getElementsByTagName("option")[selects[i].selectedIndex]; |
163 | | - args.push( selects[i].name + "|" + soption.value ); |
164 | | - } |
165 | | - selects[i].disabled = "disabled"; |
166 | | - } |
167 | | - // Send! |
168 | | - var old = sajax_request_type; |
169 | | - sajax_request_type = "POST"; |
170 | | - sajax_do_call( "RevisionReview::AjaxReview", args, wgAjaxReview.processResult ); |
171 | | - sajax_request_type = old; |
172 | | - // If the request isn't done in 30 seconds, allow user to try again |
173 | | - wgAjaxReview.timeoutID = window.setTimeout( |
174 | | - function() { wgAjaxReview.inprogress = false; wgAjaxReview.unlockForm(); }, |
175 | | - 30000 |
176 | | - ); |
177 | | - return false; |
178 | | -}; |
179 | | - |
180 | | -wgAjaxReview.unlockForm = function() { |
181 | | - var form = document.getElementById("mw-reviewform"); |
182 | | - var submit = document.getElementById("submitreview"); |
183 | | - var notes = document.getElementById("wpNotes"); |
184 | | - var reason = document.getElementById("wpReason"); |
185 | | - if( !form || !submit ) { |
186 | | - return false; |
187 | | - } |
188 | | - submit.disabled = ""; |
189 | | - var inputs = form.getElementsByTagName("input"); |
190 | | - for( var i=0; i < inputs.length; i++) { |
191 | | - inputs[i].disabled = ""; |
192 | | - } |
193 | | - if( notes ) { |
194 | | - notes.disabled = ""; |
195 | | - } |
196 | | - if( reason ) { |
197 | | - reason.disabled = ""; |
198 | | - } |
199 | | - var selects = form.getElementsByTagName("select"); |
200 | | - for( var i=0; i < selects.length; i++) { |
201 | | - selects[i].disabled = ""; |
202 | | - } |
203 | | -}; |
204 | | - |
205 | | -wgAjaxReview.processResult = function(request) { |
206 | | - if( !wgAjaxReview.supported ) { |
207 | | - return; |
208 | | - } |
209 | | - var response = request.responseText; |
210 | | - if( msg = response.substr(6) ) { |
211 | | - jsMsg( msg, 'review' ); // success notice |
212 | | - window.scroll(0,0); // scroll up to notice |
213 | | - tagBox = document.getElementById('mw-revisiontag'); |
214 | | - if( tagBox ) tagBox.style.display = 'none'; // remove tag from draft |
215 | | - } |
216 | | - wgAjaxReview.inprogress = false; |
217 | | - if( wgAjaxReview.timeoutID ) { |
218 | | - window.clearTimeout(wgAjaxReview.timeoutID); |
219 | | - } |
220 | | - var submit = document.getElementById("submitreview"); |
221 | | - if( response.indexOf('<suc#>') == 0 ) { |
222 | | - document.title = wgAjaxReview.actioncomplete; |
223 | | - if( submit ) submit.value = wgAjaxReview.sentMsgOk; |
224 | | - } else { |
225 | | - document.title = wgAjaxReview.actionfailed; |
226 | | - if( submit ) submit.value = wgAjaxReview.sentMsgBad; |
227 | | - } |
228 | | - wgAjaxReview.unlockForm(); |
229 | | -}; |
230 | | - |
231 | | -wgAjaxReview.onLoad = function() { |
232 | | - var submit = document.getElementById("submitreview"); |
233 | | - if( submit ) { |
234 | | - submit.onclick = wgAjaxReview.ajaxCall; |
235 | | - } |
236 | | -}; |
237 | | - |
238 | | -hookEvent("load", wgAjaxReview.onLoad); |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -162,7 +162,7 @@ |
163 | 163 | |
164 | 164 | # URL location for flaggedrevs.css and flaggedrevs.js |
165 | 165 | # Use a literal $wgScriptPath as a placeholder for the runtime value of $wgScriptPath |
166 | | -$wgFlaggedRevsStylePath = '$wgScriptPath/extensions/FlaggedRevs'; |
| 166 | +$wgFlaggedRevsStylePath = '$wgScriptPath/extensions/FlaggedRevs/client'; |
167 | 167 | |
168 | 168 | # Define our basic reviewer class |
169 | 169 | $wgGroupPermissions['editor']['review'] = true; |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/flaggedrevs.css |
— | — | @@ -0,0 +1,352 @@ |
| 2 | +/* Every time you change this CSS please bump $wgFlaggedRevStyleVersion in FlaggedRevs.php */ |
| 3 | + |
| 4 | +/* Standard User Interface */ |
| 5 | +.flaggedrevs_basic, |
| 6 | +.flaggedrevs_quality, |
| 7 | +.flaggedrevs_pristine, |
| 8 | +.flaggedrevs_notice, |
| 9 | +.flaggedrevs_editnotice, |
| 10 | +.flaggedrevs_diffnotice, |
| 11 | +.flaggedrevs_warning, |
| 12 | +.flaggedrevs_preview { |
| 13 | + border: 1px solid #aaa; |
| 14 | + padding: 5px; |
| 15 | + font-weight: normal; |
| 16 | + line-height: 1.5em; |
| 17 | + margin: .5em 1em 0em 0em; |
| 18 | + text-align: center; |
| 19 | + clear: both; |
| 20 | +} |
| 21 | + |
| 22 | +.flaggedrevs_basic { |
| 23 | + background-color: #f0f8ff; |
| 24 | +} |
| 25 | +.flaggedrevs_quality { |
| 26 | + background-color: #f0fff0; |
| 27 | +} |
| 28 | +.flaggedrevs_pristine { |
| 29 | + background-color: #fffff0; |
| 30 | +} |
| 31 | +.flaggedrevs_notice { |
| 32 | + background-color: #f9f9f9; |
| 33 | +} |
| 34 | +.flaggedrevs_preview { |
| 35 | + background-color: #f9f9f9; |
| 36 | + color: #8b0000; |
| 37 | +} |
| 38 | + |
| 39 | +.flaggedrevs_warning { |
| 40 | + font-size: 85%; |
| 41 | + background-color: #fffff0; |
| 42 | + margin: 0em 1em 0em 0em; |
| 43 | +} |
| 44 | +.flaggedrevs_editnotice { |
| 45 | + font-size: 85%; |
| 46 | + background-color: #f9f9f9; |
| 47 | +} |
| 48 | +.flaggedrevs_diffnotice { |
| 49 | + font-size: 85%; |
| 50 | + background-color: #f9f9f9; |
| 51 | +} |
| 52 | + |
| 53 | +.flaggedrevs_notes { |
| 54 | + border: 1px solid #aaa; |
| 55 | + background-color: #f9f9f9; |
| 56 | + padding: 5px; |
| 57 | + font-size: 85%; |
| 58 | + margin-left: 50px; |
| 59 | + margin-right: 50px; |
| 60 | + text-align: center; |
| 61 | +} |
| 62 | + |
| 63 | +.fr-text-value { |
| 64 | + width: 100px; |
| 65 | +} |
| 66 | + |
| 67 | +.fr-checkbox { |
| 68 | + padding: 0px; |
| 69 | + width: 16px; |
| 70 | + height: 16px; |
| 71 | + position: relative; |
| 72 | + float: left; |
| 73 | + top: 0px; |
| 74 | + right: 0px; |
| 75 | + background-repeat: no-repeat; |
| 76 | + background-position: 0px 0px; |
| 77 | + background-image: url(img/boxC.png); |
| 78 | +} |
| 79 | + |
| 80 | +.fr-marker-20, |
| 81 | +.fr-marker-40, |
| 82 | +.fr-marker-60, |
| 83 | +.fr-marker-80, |
| 84 | +.fr-marker-100 { |
| 85 | + background-position: bottom left; |
| 86 | + background-repeat: no-repeat; |
| 87 | + padding-bottom: 3px; |
| 88 | +} |
| 89 | + |
| 90 | +.fr-marker-20 { |
| 91 | + background-image: url(img/bar_20.png); |
| 92 | +} |
| 93 | +.fr-marker-40 { |
| 94 | + background-image: url(img/bar_40.png); |
| 95 | +} |
| 96 | +.fr-marker-60 { |
| 97 | + background-image: url(img/bar_60.png); |
| 98 | +} |
| 99 | +.fr-marker-80 { |
| 100 | + background-image: url(img/bar_80.png); |
| 101 | +} |
| 102 | +.fr-marker-100 { |
| 103 | + background-image: url(img/bar_100.png); |
| 104 | +} |
| 105 | + |
| 106 | +/* Short User Interface */ |
| 107 | +.flaggedrevs_short { |
| 108 | + border: 0px; |
| 109 | + background-color: #f9f9f9; |
| 110 | + padding: 1px; |
| 111 | + font-size: 95%; |
| 112 | + font-weight: normal; |
| 113 | + margin: 0em 0em 0em 1em; |
| 114 | + float: right; |
| 115 | + text-align: left; |
| 116 | + max-width: 450px; |
| 117 | + line-height: 16px; |
| 118 | +} |
| 119 | + |
| 120 | +.rtl .flaggedrevs_short { |
| 121 | + float: left; |
| 122 | + margin: 0 1em 0 0; |
| 123 | +} |
| 124 | + |
| 125 | +.fr-text { |
| 126 | + height: 1em; |
| 127 | + line-height: 1em; |
| 128 | + margin: 0px 7px 0px 0px; |
| 129 | + padding: 0px; |
| 130 | + font-weight: bold; |
| 131 | + width: 80px; |
| 132 | +} |
| 133 | + |
| 134 | +.fr-value20, |
| 135 | +.fr-value40, |
| 136 | +.fr-value60, |
| 137 | +.fr-value80, |
| 138 | +.fr-value100 { |
| 139 | + height: 1em; |
| 140 | + line-height: 1em; |
| 141 | + width: 95px; |
| 142 | + float: left; |
| 143 | + background-repeat: no-repeat; |
| 144 | + background-position: 50% 50%; |
| 145 | + text-align: center; |
| 146 | +} |
| 147 | + |
| 148 | +.fr-value20 { |
| 149 | + background-image: url(img/fr-marker-20.png); |
| 150 | +} |
| 151 | +.fr-value40 { |
| 152 | + background-image: url(img/fr-marker-40.png); |
| 153 | +} |
| 154 | +.fr-value60 { |
| 155 | + background-image: url(img/fr-marker-60.png); |
| 156 | +} |
| 157 | +.fr-value80 { |
| 158 | + background-image: url(img/fr-marker-80.png); |
| 159 | +} |
| 160 | +.fr-value100 { |
| 161 | + background-image: url(img/fr-marker-100.png); |
| 162 | +} |
| 163 | + |
| 164 | +.flaggedrevs-box0, |
| 165 | +.flaggedrevs-box1, |
| 166 | +.flaggedrevs-box2, |
| 167 | +.flaggedrevs-box3 { |
| 168 | + border: 1px solid #aaa; |
| 169 | + text-align: center; |
| 170 | + font-size: 85%; |
| 171 | + clear: both; |
| 172 | +} |
| 173 | + |
| 174 | +.flaggedrevs-box0 { |
| 175 | + background-color: #f9f9f9; |
| 176 | +} |
| 177 | +.flaggedrevs-box1 { |
| 178 | + background-color: #f0f8ff; |
| 179 | +} |
| 180 | +.flaggedrevs-box2 { |
| 181 | + background-color: #f0fff0; |
| 182 | +} |
| 183 | +.flaggedrevs-box3 { |
| 184 | + background-color: #fffff0; |
| 185 | +} |
| 186 | + |
| 187 | +/* Both User Interfaces */ |
| 188 | +.flaggedrevs-color-0 { |
| 189 | + background-color: #f9f9f9; |
| 190 | +} |
| 191 | +.flaggedrevs-color-1 { |
| 192 | + background-color: #f0f8ff; |
| 193 | +} |
| 194 | +.flaggedrevs-color-2 { |
| 195 | + background-color: #f0fff0; |
| 196 | +} |
| 197 | +.flaggedrevs-color-3 { |
| 198 | + background-color: #fffff0; |
| 199 | +} |
| 200 | + |
| 201 | +.flaggedrevs-unreviewed { |
| 202 | + background-color: #fffff0; |
| 203 | +} |
| 204 | + |
| 205 | +.flaggedrevs-unreviewed2 { |
| 206 | + background-color: #faebd7; |
| 207 | +} |
| 208 | + |
| 209 | +.flaggedrevs_toggle { |
| 210 | + color: blue; |
| 211 | + white-space: nowrap; |
| 212 | + cursor:pointer; |
| 213 | +} |
| 214 | + |
| 215 | +.fr-icon-current, |
| 216 | +.fr-icon-stable, |
| 217 | +.fr-icon-quality, |
| 218 | +.fr-icon-locked, |
| 219 | +.fr-icon-unlocked { |
| 220 | + padding: 0px; |
| 221 | + margin: 0em .2em 0em 0em; |
| 222 | + width: 16px; |
| 223 | + height: 16px; |
| 224 | + float: left; |
| 225 | + background-repeat: no-repeat; |
| 226 | + background-position: center center; |
| 227 | +} |
| 228 | +.fr-icon-current { |
| 229 | + background-image: url(img/1.png); |
| 230 | +} |
| 231 | +.fr-icon-stable { |
| 232 | + background-image: url(img/2.png); |
| 233 | +} |
| 234 | +.fr-icon-quality { |
| 235 | + background-image: url(img/3.png); |
| 236 | +} |
| 237 | +.fr-icon-locked { |
| 238 | + background-image: url(img/lock-closed.png); |
| 239 | +} |
| 240 | +.fr-icon-unlocked { |
| 241 | + width: 23px; |
| 242 | + background-image: url(img/lock-open.png); |
| 243 | +} |
| 244 | + |
| 245 | +.fr-diff-ratings { |
| 246 | + font-size: 90%; |
| 247 | + line-height: 1em; |
| 248 | +} |
| 249 | + |
| 250 | +.fr-diff-to-stable { |
| 251 | + line-height: 1em; |
| 252 | +} |
| 253 | + |
| 254 | +.fr-hist-stable-user, |
| 255 | +.fr-hist-quality-user, |
| 256 | +.fr-hist-autoreviewed { |
| 257 | + font-weight: bold; |
| 258 | +} |
| 259 | + |
| 260 | +/* Site notices */ |
| 261 | +.fr-backlognotice { |
| 262 | + padding: 3px; |
| 263 | + margin: 5px; |
| 264 | + border: 1px solid #990000; |
| 265 | + background-color: #f5ecec; |
| 266 | +} |
| 267 | +.fr-watchlist-old-notice { |
| 268 | + padding: 3px; |
| 269 | + margin: 5px; |
| 270 | + border: 1px solid #990000; |
| 271 | + background-color: #FEECD7; |
| 272 | +} |
| 273 | + |
| 274 | +/* Special pages */ |
| 275 | +.fr-pending-long { |
| 276 | + background-color: #f5ecec; |
| 277 | +} |
| 278 | +.fr-pending-long2 { |
| 279 | + background-color: #f5dddd; |
| 280 | +} |
| 281 | +.fr-pending-long3 { |
| 282 | + background-color: #e2caca; |
| 283 | +} |
| 284 | + |
| 285 | +.fr-unreviewed-unwatched { |
| 286 | + background-color: #faebd7; |
| 287 | +} |
| 288 | + |
| 289 | +.fr-under-review { |
| 290 | + background-color: yellow; |
| 291 | +} |
| 292 | + |
| 293 | +/* Review form */ |
| 294 | +.flaggedrevs_reviewform { |
| 295 | + background-color: #f9f9f9; |
| 296 | + font-size: 90%; |
| 297 | + clear: both; |
| 298 | +} |
| 299 | + |
| 300 | +.fr-rating-controls, |
| 301 | +.fr-rating-controls-disabled { |
| 302 | + vertical-align: middle; |
| 303 | + line-height: 1em; |
| 304 | +} |
| 305 | + |
| 306 | +.fr-rating-controls-disabled { |
| 307 | + color: GrayText; |
| 308 | +} |
| 309 | + |
| 310 | +.fr-rating-options { |
| 311 | + margin-right: 1.5em; |
| 312 | +} |
| 313 | + |
| 314 | +.fr-rating-option-0 { |
| 315 | + background-color: #f5ecec; |
| 316 | +} |
| 317 | +.fr-rating-option-1 { |
| 318 | + background-color: #f0f8ff; |
| 319 | +} |
| 320 | +.fr-rating-option-2 { |
| 321 | + background-color: #f0fff0; |
| 322 | +} |
| 323 | +.fr-rating-option-3 { |
| 324 | + background-color: #fef0db; |
| 325 | +} |
| 326 | +.fr-rating-option-4 { |
| 327 | + background-color: #fffff0; |
| 328 | +} |
| 329 | + |
| 330 | +.fr-diff-patrollink { |
| 331 | + text-align: center; |
| 332 | +} |
| 333 | + |
| 334 | +.fr-notes-box { |
| 335 | + width: 95%; |
| 336 | + margin: 0em 1em 0em .5em; |
| 337 | +} |
| 338 | + |
| 339 | +.fr-comment-box { |
| 340 | + margin-top: .25em; |
| 341 | +} |
| 342 | + |
| 343 | +.fr-rating-dave { |
| 344 | + background-color: #E0ECF8; |
| 345 | +} |
| 346 | + |
| 347 | +.fr-rating-rave { |
| 348 | + background-color: #E0F8EC; |
| 349 | +} |
| 350 | + |
| 351 | +.fr-hiddenform { |
| 352 | + display: none; |
| 353 | +} |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/flaggedrevs.css |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 354 | + native |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/flaggedrevs.js |
— | — | @@ -0,0 +1,237 @@ |
| 2 | +/* -- (c) Aaron Schulz, Daniel Arnold 2008 */ |
| 3 | + |
| 4 | +/* Every time you change this JS please bump $wgFlaggedRevStyleVersion in FlaggedRevs.php */ |
| 5 | + |
| 6 | +/* Hide rating clutter */ |
| 7 | +function enable_showhide() { |
| 8 | + var toggle = document.getElementById('mw-revisiontoggle'); |
| 9 | + if( !toggle ) return; |
| 10 | + toggle.style.display = 'inline'; |
| 11 | + var ratings = document.getElementById('mw-revisionratings'); |
| 12 | + if( !ratings ) return; |
| 13 | + ratings.style.display = 'none'; |
| 14 | +} |
| 15 | + |
| 16 | +/* Toggles ratings */ |
| 17 | +function toggleRevRatings() { |
| 18 | + var ratings = document.getElementById('mw-revisionratings'); |
| 19 | + if( !ratings ) return; |
| 20 | + if( ratings.style.display == 'none' ) { |
| 21 | + ratings.style.display = 'inline'; |
| 22 | + } else { |
| 23 | + ratings.style.display = 'none'; |
| 24 | + } |
| 25 | +} |
| 26 | + |
| 27 | +/* |
| 28 | +* a) Disable submit in case of invalid input. |
| 29 | +* b) Update colors when select changes (Opera already does this). |
| 30 | +* c) Also remove comment box clutter in case of invalid input. |
| 31 | +*/ |
| 32 | +function updateRatingForm() { |
| 33 | + var ratingform = document.getElementById('mw-ratingselects'); |
| 34 | + if( !ratingform ) return; |
| 35 | + var disabled = document.getElementById('fr-rating-controls-disabled'); |
| 36 | + if( disabled ) return; |
| 37 | + |
| 38 | + var quality = true; |
| 39 | + var allzero = true; |
| 40 | + var somezero = false; |
| 41 | + |
| 42 | + for( tag in wgFlaggedRevsParams.tags ) { |
| 43 | + var controlName = "wp" + tag; |
| 44 | + var levels = document.getElementsByName(controlName); |
| 45 | + var selectedlevel = 0; // default |
| 46 | + |
| 47 | + if( levels[0].nodeName == 'SELECT' ) { |
| 48 | + selectedlevel = levels[0].selectedIndex; |
| 49 | + // Update color. Opera does this already, and doing so |
| 50 | + // seems to kill custom pretty opera skin form styling. |
| 51 | + if( navigator.appName != 'Opera') { |
| 52 | + value = levels[0].getElementsByTagName('option')[selectedlevel].value; |
| 53 | + levels[0].className = 'fr-rating-option-' + value; |
| 54 | + } |
| 55 | + } else if( levels[0].type == 'radio' ) { |
| 56 | + for( i = 0; i < levels.length; i++ ) { |
| 57 | + if( levels[i].checked ) { |
| 58 | + selectedlevel = i; |
| 59 | + break; |
| 60 | + } |
| 61 | + } |
| 62 | + } else if( levels[0].type == 'checkbox' ) { |
| 63 | + selectedlevel = (levels[0].checked) ? 1: 0; |
| 64 | + } else { |
| 65 | + return; // error: should not happen |
| 66 | + } |
| 67 | + |
| 68 | + // Get quality level for this tag |
| 69 | + qualityLevel = wgFlaggedRevsParams.tags[tag]; |
| 70 | + |
| 71 | + if( selectedlevel < qualityLevel ) { |
| 72 | + quality = false; // not a quality review |
| 73 | + } |
| 74 | + if( selectedlevel > 0 ) { |
| 75 | + allzero = false; |
| 76 | + } else { |
| 77 | + somezero = true; |
| 78 | + } |
| 79 | + } |
| 80 | + // Show note box only for quality revs |
| 81 | + var notebox = document.getElementById('mw-notebox'); |
| 82 | + if( notebox ) { |
| 83 | + notebox.style.display = quality ? 'inline' : 'none'; |
| 84 | + } |
| 85 | + // If only a few levels are zero, don't show submit link |
| 86 | + var submit = document.getElementById('submitreview'); |
| 87 | + submit.disabled = ( somezero && !allzero ) ? 'disabled' : ''; |
| 88 | + // Clear note box data if not shown |
| 89 | + var notes = document.getElementById('wpNotes'); |
| 90 | + if( notes ) { |
| 91 | + notes.value = quality ? notes.value : ''; |
| 92 | + } |
| 93 | +} |
| 94 | + |
| 95 | +addOnloadHook(enable_showhide); |
| 96 | +addOnloadHook(updateRatingForm); |
| 97 | + |
| 98 | +// dependencies: |
| 99 | +// * ajax.js: |
| 100 | + /*extern sajax_init_object, sajax_do_call */ |
| 101 | +// * wikibits.js: |
| 102 | + /*extern hookEvent, jsMsg */ |
| 103 | +// These should have been initialized in the generated js |
| 104 | +if( typeof wgAjaxReview === "undefined" || !wgAjaxReview ) { |
| 105 | + wgAjaxReview = { |
| 106 | + sendingMsg: "Submitting...", |
| 107 | + sentMsgOk: "Review complete!", |
| 108 | + sentMsgBad: "Review failed!", |
| 109 | + actioncomplete: "Action complete", |
| 110 | + actionfailed: "Action failed" |
| 111 | + }; |
| 112 | +} |
| 113 | + |
| 114 | +wgAjaxReview.supported = true; // supported on current page and by browser |
| 115 | +wgAjaxReview.inprogress = false; // ajax request in progress |
| 116 | +wgAjaxReview.timeoutID = null; // see wgAjaxReview.ajaxCall |
| 117 | + |
| 118 | +wgAjaxReview.ajaxCall = function() { |
| 119 | + if( !wgAjaxReview.supported ) { |
| 120 | + return true; |
| 121 | + } else if( wgAjaxReview.inprogress ) { |
| 122 | + return false; |
| 123 | + } |
| 124 | + if( !wfSupportsAjax() ) { |
| 125 | + // Lazy initialization so we don't toss up |
| 126 | + // ActiveX warnings on initial page load |
| 127 | + // for IE 6 users with security settings. |
| 128 | + wgAjaxReview.supported = false; |
| 129 | + return true; |
| 130 | + } |
| 131 | + var form = document.getElementById("mw-reviewform"); |
| 132 | + var notes = document.getElementById("wpNotes"); |
| 133 | + var reason = document.getElementById("wpReason"); |
| 134 | + if( !form ) { |
| 135 | + return false; |
| 136 | + } |
| 137 | + wgAjaxReview.inprogress = true; |
| 138 | + // Build up arguments |
| 139 | + var args = []; |
| 140 | + var inputs = form.getElementsByTagName("input"); |
| 141 | + for( var i=0; i < inputs.length; i++) { |
| 142 | + // Different input types may occur depending on tags... |
| 143 | + if( inputs[i].name == "title" || inputs[i].name == "action" ) { |
| 144 | + // No need to send these... |
| 145 | + } else if( inputs[i].type == "submit" ) { |
| 146 | + inputs[i].value = wgAjaxReview.sendingMsg; |
| 147 | + } else if( inputs[i].type == "checkbox" ) { |
| 148 | + args.push( inputs[i].name + "|" + (inputs[i].checked ? 1 : 0) ); |
| 149 | + } else if( inputs[i].type != "radio" || inputs[i].checked ) { |
| 150 | + args.push( inputs[i].name + "|" + inputs[i].value ); |
| 151 | + } |
| 152 | + inputs[i].disabled = "disabled"; |
| 153 | + } |
| 154 | + if( notes ) { |
| 155 | + args.push( notes.name + "|" + notes.value ); |
| 156 | + notes.disabled = "disabled"; |
| 157 | + } |
| 158 | + var selects = form.getElementsByTagName("select"); |
| 159 | + for( var i=0; i < selects.length; i++) { |
| 160 | + // Get the selected tag level... |
| 161 | + if( selects[i].selectedIndex >= 0 ) { |
| 162 | + var soption = selects[i].getElementsByTagName("option")[selects[i].selectedIndex]; |
| 163 | + args.push( selects[i].name + "|" + soption.value ); |
| 164 | + } |
| 165 | + selects[i].disabled = "disabled"; |
| 166 | + } |
| 167 | + // Send! |
| 168 | + var old = sajax_request_type; |
| 169 | + sajax_request_type = "POST"; |
| 170 | + sajax_do_call( "RevisionReview::AjaxReview", args, wgAjaxReview.processResult ); |
| 171 | + sajax_request_type = old; |
| 172 | + // If the request isn't done in 30 seconds, allow user to try again |
| 173 | + wgAjaxReview.timeoutID = window.setTimeout( |
| 174 | + function() { wgAjaxReview.inprogress = false; wgAjaxReview.unlockForm(); }, |
| 175 | + 30000 |
| 176 | + ); |
| 177 | + return false; |
| 178 | +}; |
| 179 | + |
| 180 | +wgAjaxReview.unlockForm = function() { |
| 181 | + var form = document.getElementById("mw-reviewform"); |
| 182 | + var submit = document.getElementById("submitreview"); |
| 183 | + var notes = document.getElementById("wpNotes"); |
| 184 | + var reason = document.getElementById("wpReason"); |
| 185 | + if( !form || !submit ) { |
| 186 | + return false; |
| 187 | + } |
| 188 | + submit.disabled = ""; |
| 189 | + var inputs = form.getElementsByTagName("input"); |
| 190 | + for( var i=0; i < inputs.length; i++) { |
| 191 | + inputs[i].disabled = ""; |
| 192 | + } |
| 193 | + if( notes ) { |
| 194 | + notes.disabled = ""; |
| 195 | + } |
| 196 | + if( reason ) { |
| 197 | + reason.disabled = ""; |
| 198 | + } |
| 199 | + var selects = form.getElementsByTagName("select"); |
| 200 | + for( var i=0; i < selects.length; i++) { |
| 201 | + selects[i].disabled = ""; |
| 202 | + } |
| 203 | +}; |
| 204 | + |
| 205 | +wgAjaxReview.processResult = function(request) { |
| 206 | + if( !wgAjaxReview.supported ) { |
| 207 | + return; |
| 208 | + } |
| 209 | + var response = request.responseText; |
| 210 | + if( msg = response.substr(6) ) { |
| 211 | + jsMsg( msg, 'review' ); // success notice |
| 212 | + window.scroll(0,0); // scroll up to notice |
| 213 | + tagBox = document.getElementById('mw-revisiontag'); |
| 214 | + if( tagBox ) tagBox.style.display = 'none'; // remove tag from draft |
| 215 | + } |
| 216 | + wgAjaxReview.inprogress = false; |
| 217 | + if( wgAjaxReview.timeoutID ) { |
| 218 | + window.clearTimeout(wgAjaxReview.timeoutID); |
| 219 | + } |
| 220 | + var submit = document.getElementById("submitreview"); |
| 221 | + if( response.indexOf('<suc#>') == 0 ) { |
| 222 | + document.title = wgAjaxReview.actioncomplete; |
| 223 | + if( submit ) submit.value = wgAjaxReview.sentMsgOk; |
| 224 | + } else { |
| 225 | + document.title = wgAjaxReview.actionfailed; |
| 226 | + if( submit ) submit.value = wgAjaxReview.sentMsgBad; |
| 227 | + } |
| 228 | + wgAjaxReview.unlockForm(); |
| 229 | +}; |
| 230 | + |
| 231 | +wgAjaxReview.onLoad = function() { |
| 232 | + var submit = document.getElementById("submitreview"); |
| 233 | + if( submit ) { |
| 234 | + submit.onclick = wgAjaxReview.ajaxCall; |
| 235 | + } |
| 236 | +}; |
| 237 | + |
| 238 | +hookEvent("load", wgAjaxReview.onLoad); |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/flaggedrevs.js |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 239 | + native |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/lock-closed.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/lock-closed.png |
___________________________________________________________________ |
Name: svn:mime-type |
2 | 240 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/arrow-down.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/arrow-down.png |
___________________________________________________________________ |
Name: svn:mime-type |
3 | 241 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/1.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/1.png |
___________________________________________________________________ |
Name: svn:mime-type |
4 | 242 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/2.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/2.png |
___________________________________________________________________ |
Name: svn:mime-type |
5 | 243 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/checkmark-orange.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/checkmark-orange.png |
___________________________________________________________________ |
Name: svn:mime-type |
6 | 244 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/3.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/3.png |
___________________________________________________________________ |
Name: svn:mime-type |
7 | 245 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_20.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_20.png |
___________________________________________________________________ |
Name: svn:mime-type |
8 | 246 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-20.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-20.png |
___________________________________________________________________ |
Name: svn:mime-type |
9 | 247 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_40.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_40.png |
___________________________________________________________________ |
Name: svn:mime-type |
10 | 248 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-40.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-40.png |
___________________________________________________________________ |
Name: svn:mime-type |
11 | 249 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_60.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_60.png |
___________________________________________________________________ |
Name: svn:mime-type |
12 | 250 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-60.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-60.png |
___________________________________________________________________ |
Name: svn:mime-type |
13 | 251 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-80.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-80.png |
___________________________________________________________________ |
Name: svn:mime-type |
14 | 252 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_80.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_80.png |
___________________________________________________________________ |
Name: svn:mime-type |
15 | 253 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/arrow-up.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/arrow-up.png |
___________________________________________________________________ |
Name: svn:mime-type |
16 | 254 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/license.txt |
— | — | @@ -0,0 +1,5 @@ |
| 2 | +All images in this folder are available under the |
| 3 | +GNU Free Documentation license (1.2+). |
| 4 | + |
| 5 | +All the images are to be credited to Joerg Baach, except for lock-open.png and lock-closed.png, |
| 6 | +which where created by "Jasu" (http://commons.wikimedia.org/wiki/User:Jasu), under the same license. |
\ No newline at end of file |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/license.txt |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 7 | + native |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-100.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/fr-marker-100.png |
___________________________________________________________________ |
Name: svn:mime-type |
2 | 8 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_100.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/bar_100.png |
___________________________________________________________________ |
Name: svn:mime-type |
3 | 9 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/checkmark-green.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/checkmark-green.png |
___________________________________________________________________ |
Name: svn:mime-type |
4 | 10 | + image/png |
Index: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/lock-open.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: branches/wmf/1.16wmf4/extensions/FlaggedRevs/client/img/lock-open.png |
___________________________________________________________________ |
Name: svn:mime-type |
5 | 11 | + image/png |