The special page form received a new checkbox matching that option.
* (bug 23580) Implement javascript callback interface "mw.hook".
* (bug 30713) New mw.hook "wikipage.content".
+* (bug 40430) jquery.placeholder gets a new parameter to set the attribute value
+ to be used.
=== Bug fixes in 1.22 ===
* Disable Special:PasswordReset when $wgEnableEmail is false. Previously one
( function ( $ ) {
$.fn.placeholder = function ( text ) {
- // Check whether supplied argument is a string
- var textIsValid = ( typeof text === 'string' );
return this.each( function () {
var placeholder, $input;
+ if ( arguments.length ) {
+ this.setAttribute( 'placeholder', text );
+ }
// If the HTML5 placeholder attribute is supported, use it
if ( this.placeholder && 'placeholder' in document.createElement( this.tagName ) ) {
- if ( textIsValid ) {
- this.setAttribute( 'placeholder', text );
- }
return;
}
- placeholder = textIsValid ? text : this.getAttribute( 'placeholder' );
+ placeholder = arguments.length ? text : this.getAttribute( 'placeholder' );
$input = $(this);
// Show initially, if empty