* Removing wfSupportsAjax() call. We don't use legacy sajax_ anymore, jQuery takes...
authorKrinkle <krinkle@users.mediawiki.org>
Tue, 14 Dec 2010 17:21:40 +0000 (17:21 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Tue, 14 Dec 2010 17:21:40 +0000 (17:21 +0000)
* 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.

resources/Resources.php
resources/mediawiki.action/mediawiki.action.watch.ajax.js
resources/mediawiki.util/mediawiki.util.js

index 9648904..0ead557 100644 (file)
@@ -342,7 +342,7 @@ return array(
        ),
        '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',
index 72ff5e3..7994cfc 100644 (file)
@@ -73,7 +73,7 @@ $( document ).ready( function() {
        $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.
index bc17158..0f9c4c6 100644 (file)
                                        }
                                }
                                
-                               $messageDiv.show();
                                if ( className ) {
                                        $messageDiv.attr( 'class', 'mw-js-message-' + className );
                                }
                                } else {
                                        $messageDiv.html( message );
                                }
+
+                               $messageDiv.slideDown();
                                return true;
                        }
                }