http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88291

Revision: 88291
Author:   kaldari
Date:     2011-05-17 10:08:56 +0000 (Tue, 17 May 2011)
Log Message:
-----------
less confusing config var name, condensing comment to 1 line

Modified Paths:
--------------
    trunk/extensions/WikiLove/wikiLove.js

Modified: trunk/extensions/WikiLove/wikiLove.js
===================================================================
--- trunk/extensions/WikiLove/wikiLove.js       2011-05-17 08:46:29 UTC (rev 
88290)
+++ trunk/extensions/WikiLove/wikiLove.js       2011-05-17 10:08:56 UTC (rev 
88291)
@@ -12,8 +12,7 @@
                                        descr: 'Original barnstar', // 
description in the menu
                                        text: '{{subst:The Original Barnstar|$1 
~~~~}}', // message text, $1 is replaced by the user message
                                        template: 'The Original Barnstar', // 
template that is used, for statistics
-                                       mail: 'Hello $2!\n\nI just awarded you 
a barnstar.' // message to use in email notification
-                                       // $2 is replaced by the recipient's 
username
+                                       mail: 'Hello $2!\n\nI just awarded you 
a barnstar.' // message to use in email notification; $2 is replaced by the 
recipient's username
                                },
                                'special': {
                                        title: null, // no predefined title, 
allows the user to enter a title
@@ -23,7 +22,7 @@
                                        mail: 'Hello $2!\n\nI just awarded you 
the special barnstar.'
                                }
                        },
-                       email: true, // add email notices as an option for each 
award of this type
+                       showNotify: true, // add email notices as an option for 
each award of this type
                        icon: mw.config.get( 'wgServer' ) + mw.config.get( 
'wgScriptPath' ) + 
'/extensions/WikiLove/images/icons/wikilove-icon-barnstar.png'
                },
                'cat': {
@@ -286,7 +285,7 @@
                        $( '#wlGallery' ).hide();
                }
                
-               if( $.wikiLove.types[$.wikiLove.currentTypeId].email ) {
+               if( $.wikiLove.types[$.wikiLove.currentTypeId].showNotify ) {
                        $( '#wlNotify' ).show();
                } else {
                        $( '#wlNotify' ).hide();


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

Reply via email to