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

Revision: 88966
Author:   janpaul123
Date:     2011-05-27 11:20:15 +0000 (Fri, 27 May 2011)
Log Message:
-----------
Removed error for not entering a message and added rationale

Modified Paths:
--------------
    trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js

Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
===================================================================
--- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js 
2011-05-27 11:15:06 UTC (rev 88965)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js 
2011-05-27 11:20:15 UTC (rev 88966)
@@ -278,9 +278,16 @@
                if( $( '#mw-wikilove-header' ).val().length <= 0 ) {
                        $.wikiLove.showError( 'wikilove-err-header' ); return 
false;
                }
+               
+               /*
+               Let's not show an error for not entering a message, making it 
always optional.
+               This is preferred over removing the field from the interface, 
so that users are
+               stimulated to enter a message, but are not required to do so if 
they want to leave
+               a quick gesture of appreciation.
                if( $( '#mw-wikilove-message' ).val().length <= 0 ) {
                        $.wikiLove.showError( 'wikilove-err-msg' ); return 
false;
                }
+               */
                
                // If there isn't a signature already in the message, throw an 
error
                if ( $( '#mw-wikilove-message' ).val().indexOf( '~~~' ) >= 0 ) {


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to