Index: trunk/extensions/FlaggedRevs/client/flaggedrevs.js |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | 'isMouseOutBubble': function( event, parentId ) { |
84 | 84 | var toNode = null; |
85 | 85 | if( event.relatedTarget != undefined ) { |
86 | | - toNode = event.relatedTarget; // FF/Opera/Safari |
87 | | - } else { |
88 | | - toNode = event.toElement; // IE |
89 | | - } |
| 86 | + toNode = event.relatedTarget; // FF/Opera/Safari |
| 87 | + } else { |
| 88 | + toNode = event.toElement; // IE |
| 89 | + } |
90 | 90 | if( toNode ) { |
91 | 91 | var nextParent = toNode.parentNode; |
92 | 92 | while( nextParent ) { |
Index: trunk/extensions/FlaggedRevs/client/review.js |
— | — | @@ -14,16 +14,16 @@ |
15 | 15 | if( !ratingform ) return; |
16 | 16 | var disabled = document.getElementById('fr-rating-controls-disabled'); |
17 | 17 | if( disabled ) return; |
18 | | - |
| 18 | + |
19 | 19 | var quality = true; |
20 | 20 | var somezero = false; |
21 | | - |
| 21 | + |
22 | 22 | // Determine if this is a "quality" or "incomplete" review |
23 | 23 | for( tag in wgFlaggedRevsParams.tags ) { |
24 | 24 | var controlName = "wp" + tag; |
25 | 25 | var levels = document.getElementsByName(controlName); |
26 | 26 | if( !levels.length ) continue; |
27 | | - |
| 27 | + |
28 | 28 | var selectedlevel = 0; // default |
29 | 29 | if( levels[0].nodeName == 'SELECT' ) { |
30 | 30 | selectedlevel = levels[0].selectedIndex; |
— | — | @@ -39,10 +39,10 @@ |
40 | 40 | } else { |
41 | 41 | return; // error: should not happen |
42 | 42 | } |
43 | | - |
| 43 | + |
44 | 44 | // Get quality level for this tag |
45 | 45 | qualityLevel = wgFlaggedRevsParams.tags[tag]['quality']; |
46 | | - |
| 46 | + |
47 | 47 | if( selectedlevel < qualityLevel ) { |
48 | 48 | quality = false; // not a quality review |
49 | 49 | } |
— | — | @@ -163,7 +163,6 @@ |
164 | 164 | FlaggedRevsReview.lockReviewForm( form ); // disallow submissions |
165 | 165 | |
166 | 166 | var notes = document.getElementById("wpNotes"); |
167 | | - var reason = document.getElementById("wpReason"); |
168 | 167 | // Build up arguments array and update submit button text... |
169 | 168 | var requestArgs = []; // array of strings of the format <"pname|pval">. |
170 | 169 | var inputs = form.getElementsByTagName("input"); |
— | — | @@ -212,7 +211,6 @@ |
213 | 212 | dataType: "html", // response type |
214 | 213 | success : function( response ) { |
215 | 214 | FlaggedRevsReview.updateReviewForm( form, response ); }, |
216 | | - timeout : 5000, // 5 second timeout |
217 | 215 | error : function( response ) { |
218 | 216 | FlaggedRevsReview.unlockReviewForm( form ); } |
219 | 217 | }); |