Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.css |
— | — | @@ -1,20 +1,20 @@ |
2 | | -.mw-mah-wrapper a{ |
3 | | - cursor:pointer; |
| 2 | +.mw-mah-wrapper a { |
| 3 | + cursor: pointer; |
4 | 4 | } |
5 | 5 | |
6 | 6 | .mw-mah-wrapper .mah-helpful-state { |
7 | 7 | /* @embed */ |
8 | | - background: transparent url(images/mah-helpful-dull.png) left center no-repeat; |
| 8 | + background: transparent url(images/mah-helpful-dull.png) no-repeat left center; |
9 | 9 | padding-left: 18px; |
10 | 10 | } |
11 | 11 | |
12 | 12 | .mw-mah-wrapper .mah-helpful-state:hover { |
13 | 13 | /* @embed */ |
14 | | - background: transparent url(images/mah-helpful-hover.png) left center no-repeat; |
| 14 | + background: transparent url(images/mah-helpful-hover.png) no-repeat left center; |
15 | 15 | } |
16 | 16 | |
17 | 17 | .mw-mah-wrapper .mah-helpful-marked-state { |
18 | 18 | /* @embed */ |
19 | | - background: transparent url(images/mah-helpful-marked.png) left center no-repeat; |
20 | | - padding-left:18px; |
21 | | -} |
\ No newline at end of file |
| 19 | + background: transparent url(images/mah-helpful-marked.png) no-repeat left center; |
| 20 | + padding-left: 18px; |
| 21 | +} |
Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js |
— | — | @@ -18,14 +18,14 @@ |
19 | 19 | props = mah.getItemProperties( $(el) ); |
20 | 20 | // Create an item reference to place in the loaded items array. |
21 | 21 | thisItem = props.type + props.item; |
22 | | - |
| 22 | + |
23 | 23 | // Load once per type+id because user can copy / paste element on the talk page |
24 | 24 | // and load the same item many times. |
25 | | - if( $.inArray( thisItem, mah.loadedItems ) === -1 ) { |
| 25 | + if ( $.inArray( thisItem, mah.loadedItems ) === -1 ) { |
26 | 26 | mah.loadedItems.push( thisItem ); |
27 | 27 | mah.loadItem( $( el ) ); |
28 | 28 | } |
29 | | - }); |
| 29 | + }); |
30 | 30 | }, |
31 | 31 | |
32 | 32 | /** |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | var tag, props; |
38 | 38 | |
39 | 39 | tag = $item.attr( 'class' ); |
40 | | - // Item properties are stored in classname to prevent parser from stripping |
| 40 | + // Item properties are stored in classname to prevent parser from stripping |
41 | 41 | // out non html 5 objects. (eg. data-markashelpful-item) |
42 | 42 | props = { |
43 | 43 | // item id |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | }, |
87 | 87 | dataType: 'json' |
88 | 88 | }); |
89 | | - |
| 89 | + |
90 | 90 | }, |
91 | 91 | |
92 | 92 | /** |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | url: mw.util.wikiScript( 'api' ), |
114 | 114 | data: request, |
115 | 115 | success: function () { |
116 | | - mah.loadItem( $item ); |
| 116 | + mah.loadItem( $item ); |
117 | 117 | }, |
118 | 118 | dataType: 'json' |
119 | 119 | } ); |