http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90879
Revision: 90879
Author: janpaul123
Date: 2011-06-27 15:01:52 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
In r90567 the message box was made shown/hidden based on configuration options,
but when shown, it was still permitted not to enter a message. That is fixed
now.
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-06-27 14:54:04 UTC (rev 90878)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
2011-06-27 15:01:52 UTC (rev 90879)
@@ -278,15 +278,9 @@
$.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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs