Wrapped the brackets of the collapse buttons with spans
authorLuis Felipe Schenone <schenonef@gmail.com>
Mon, 21 Jul 2014 04:51:33 +0000 (12:51 +0800)
committerLuis Felipe Schenone <schenonef@gmail.com>
Mon, 21 Jul 2014 04:51:33 +0000 (12:51 +0800)
To make them accessible via CSS, similarly to what has been done with
the brackets of the edit buttons.

Change-Id: I6b961b5f11f81e6e8ef768ba43fe7f20b886051a

resources/src/jquery/jquery.makeCollapsible.js

index a4dc33b..c4e2520 100644 (file)
                                        .text( collapseText )
                                        .wrap( '<span class="mw-collapsible-toggle"></span>' )
                                                .parent()
-                                               .prepend( '&nbsp;[' )
-                                               .append( ']&nbsp;' )
+                                               .prepend( '<span class="mw-collapsible-bracket">[</span>' )
+                                               .append( '<span class="mw-collapsible-bracket">]</span>' )
                                                .on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler );
                        };