https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112159

Revision: 112159
Author:   krinkle
Date:     2012-02-22 22:45:58 +0000 (Wed, 22 Feb 2012)
Log Message:
-----------
[MarkAsHelpful] js/css clean up
* Whitespace
* newline at end of file

Modified Paths:
--------------
    
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.css
    
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js

Modified: 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.css
===================================================================
--- 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.css  
    2012-02-22 22:33:49 UTC (rev 112158)
+++ 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.css  
    2012-02-22 22:45:58 UTC (rev 112159)
@@ -1,20 +1,20 @@
-.mw-mah-wrapper a{
-       cursor:pointer;
+.mw-mah-wrapper a {
+       cursor: pointer;
 }
 
 .mw-mah-wrapper .mah-helpful-state {
        /* @embed */
-       background: transparent url(images/mah-helpful-dull.png) left center 
no-repeat;
+       background: transparent url(images/mah-helpful-dull.png) no-repeat left 
center;
        padding-left: 18px;
 }
 
 .mw-mah-wrapper .mah-helpful-state:hover {
        /* @embed */
-       background: transparent url(images/mah-helpful-hover.png) left center 
no-repeat;
+       background: transparent url(images/mah-helpful-hover.png) no-repeat 
left center;
 }
 
 .mw-mah-wrapper .mah-helpful-marked-state  {
        /* @embed */
-       background: transparent url(images/mah-helpful-marked.png) left center 
no-repeat;
-       padding-left:18px;
-}
\ No newline at end of file
+       background: transparent url(images/mah-helpful-marked.png) no-repeat 
left center;
+       padding-left: 18px;
+}

Modified: 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js
===================================================================
--- 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js   
    2012-02-22 22:33:49 UTC (rev 112158)
+++ 
trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js   
    2012-02-22 22:45:58 UTC (rev 112159)
@@ -18,14 +18,14 @@
                                props = mah.getItemProperties( $(el) );
                                // Create an item reference to place in the 
loaded items array.
                                thisItem = props.type + props.item;
-       
+
                                // Load once per type+id because user can copy 
/ paste element on the talk page
                                // and load the same item many times.
-                               if( $.inArray( thisItem, mah.loadedItems ) === 
-1 ) {
+                               if ( $.inArray( thisItem, mah.loadedItems ) === 
-1 ) {
                                        mah.loadedItems.push( thisItem );
                                        mah.loadItem( $( el ) );
                                }
-                       }); 
+                       });
                },
 
                /**
@@ -36,7 +36,7 @@
                        var tag, props;
 
                        tag = $item.attr( 'class' );
-                       // Item properties are stored in classname to prevent 
parser from stripping 
+                       // Item properties are stored in classname to prevent 
parser from stripping
                        // out non html 5 objects. (eg. data-markashelpful-item)
                        props = {
                                // item id
@@ -85,7 +85,7 @@
                                },
                                dataType: 'json'
                        });
-                       
+
                },
 
                /**
@@ -112,7 +112,7 @@
                                url: mw.util.wikiScript( 'api' ),
                                data: request,
                                success: function () {
-                                       mah.loadItem( $item );  
+                                       mah.loadItem( $item );
                                },
                                dataType: 'json'
                        } );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to