Index: trunk/extensions/WikiLove/wikiLove.js |
— | — | @@ -12,8 +12,7 @@ |
13 | 13 | descr: 'Original barnstar', // description in the menu |
14 | 14 | text: '{{subst:The Original Barnstar|$1 ~~~~}}', // message text, $1 is replaced by the user message |
15 | 15 | template: 'The Original Barnstar', // template that is used, for statistics |
16 | | - mail: 'Hello $2!\n\nI just awarded you a barnstar.' // message to use in email notification |
17 | | - // $2 is replaced by the recipient's username |
| 16 | + mail: 'Hello $2!\n\nI just awarded you a barnstar.' // message to use in email notification; $2 is replaced by the recipient's username |
18 | 17 | }, |
19 | 18 | 'special': { |
20 | 19 | title: null, // no predefined title, allows the user to enter a title |
— | — | @@ -23,7 +22,7 @@ |
24 | 23 | mail: 'Hello $2!\n\nI just awarded you the special barnstar.' |
25 | 24 | } |
26 | 25 | }, |
27 | | - email: true, // add email notices as an option for each award of this type |
| 26 | + showNotify: true, // add email notices as an option for each award of this type |
28 | 27 | icon: mw.config.get( 'wgServer' ) + mw.config.get( 'wgScriptPath' ) + '/extensions/WikiLove/images/icons/wikilove-icon-barnstar.png' |
29 | 28 | }, |
30 | 29 | 'cat': { |
— | — | @@ -286,7 +285,7 @@ |
287 | 286 | $( '#wlGallery' ).hide(); |
288 | 287 | } |
289 | 288 | |
290 | | - if( $.wikiLove.types[$.wikiLove.currentTypeId].email ) { |
| 289 | + if( $.wikiLove.types[$.wikiLove.currentTypeId].showNotify ) { |
291 | 290 | $( '#wlNotify' ).show(); |
292 | 291 | } else { |
293 | 292 | $( '#wlNotify' ).hide(); |