Index: trunk/extensions/FlaggedRevs/flaggedrevs.js |
— | — | @@ -8,10 +8,6 @@ |
9 | 9 | }
|
10 | 10 | }
|
11 | 11 |
|
12 | | -
|
13 | | -
|
14 | | -
|
15 | | -
|
16 | 12 | function hookAnyEvent(hookName, hookFunct, element) {
|
17 | 13 | if(!element){
|
18 | 14 | var element = window;
|
— | — | @@ -23,9 +19,9 @@ |
24 | 20 | }
|
25 | 21 | }
|
26 | 22 |
|
27 | | -
|
28 | 23 | var open_review_listen = function(evt){
|
29 | 24 | var review_closed = document.getElementById('mwrevisiontag_closed');
|
| 25 | + if( !review_closed ) return;
|
30 | 26 | hookAnyEvent("click", open_the_review, review_closed);
|
31 | 27 | }
|
32 | 28 |
|
— | — | @@ -51,5 +47,3 @@ |
52 | 48 | }
|
53 | 49 |
|
54 | 50 | addOnloadHook(open_review_listen);
|
55 | | -
|
56 | | -
|