Gerrit Patch Uploader has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/270637

Change subject: Load module 'jquery.tipsy' before using
......................................................................

Load module 'jquery.tipsy' before using

Bug: T126938
Change-Id: I338a78cde249405459be14948b78cf59d715145a
---
M resources/js/ext.uls.interface.js
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/37/270637/1

diff --git a/resources/js/ext.uls.interface.js 
b/resources/js/ext.uls.interface.js
index 80cfeab..761fb4c 100644
--- a/resources/js/ext.uls.interface.js
+++ b/resources/js/ext.uls.interface.js
@@ -302,14 +302,20 @@
                // The interlanguage position needs some time to settle down
                window.setTimeout( function () {
                        // Show the tipsy tooltip on page load.
-                       showTipsy( 6000 );
+                       mw.loader.using( 'jquery.tipsy' )
+                       .done( function () {
+                               showTipsy( 6000 );
+                       } );
                }, 700 );
 
                // manually show the tooltip
                $ulsTrigger.on( 'mouseover', function () {
                        // show only if the ULS panel is not shown
                        if ( !$( '.uls-menu:visible' ).length ) {
-                               showTipsy( 3000 );
+                               mw.loader.using( 'jquery.tipsy' )
+                               .done( function () {
+                                       showTipsy( 3000 );
+                               } );
                        }
                } );
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/270637
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I338a78cde249405459be14948b78cf59d715145a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to