* Thus also removing the dependency on mediawiki.legacy.ajax in mediawiki.action.watch.ajax
* Moving the show() call further down in jsMessage. Before this commit the box shows for a split second (empty) and then it suddenly grows with content. Now moved it down so that it comes into view, filled already. Also made it possible to bring back the slideDown effect without ugly flashes.
),
'mediawiki.action.watch.ajax' => array(
'scripts' => 'resources/mediawiki.action/mediawiki.action.watch.ajax.js',
- 'dependencies' => array( 'mediawiki.util', 'mediawiki.legacy.ajax' ),
+ 'dependencies' => array( 'mediawiki.util' ),
),
'mediawiki.special.preferences' => array(
'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js',
$links.click( function( event ) {
var $link = $( this );
- if( wgAjaxWatch.supported === false || !mw.config.get( 'wgEnableWriteAPI' ) || !wfSupportsAjax() ) {
+ if( wgAjaxWatch.supported === false || !mw.config.get( 'wgEnableWriteAPI' ) ) {
// Lazy initialization so we don't toss up
// ActiveX warnings on initial page load
// for IE 6 users with security settings.
}
}
- $messageDiv.show();
if ( className ) {
$messageDiv.attr( 'class', 'mw-js-message-' + className );
}
} else {
$messageDiv.html( message );
}
+
+ $messageDiv.slideDown();
return true;
}
}