mediawiki.widgets: Add title attribute to TitleOptionWidget description
authorEd Sanders <esanders@wikimedia.org>
Sat, 3 Oct 2015 12:16:01 +0000 (13:16 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 3 Oct 2015 16:26:50 +0000 (16:26 +0000)
As the description is likely truncated, this will provide
the full description on hover.

Change-Id: I0abce42a2582e2ac8d0db5a7fb98adeb3eadf62c

resources/src/mediawiki.widgets/mw.widgets.TitleOptionWidget.js

index 9b0b270..46960f5 100644 (file)
@@ -77,6 +77,7 @@
                                $( '<span>' )
                                        .addClass( 'mw-widget-titleOptionWidget-description' )
                                        .text( config.description )
+                                       .attr( 'title', config.description )
                        );
                }
        };