File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 5353
5454 /* menubar styles */
5555 .ui-menubar .ui-button { float : left; font-weight : normal; border-top-width : 0 !important ; border-bottom-width : 0 !important ; margin : 0 ; }
56- .ui-menubar .ui-button .ui-corner-all { -moz-border-radius : 0 ; -webkit-border-radius : 0 ; border-radius : 0 ; }
5756 .ui-menubar .ui-menubar-link { border-right : 1px dashed transparent; border-left : 1px dashed transparent; }
5857
5958
Original file line number Diff line number Diff line change @@ -57,15 +57,18 @@ $.widget("ui.menubar", {
5757 event . preventDefault ( ) ;
5858 event . stopPropagation ( ) ;
5959 } )
60- . button ( {
61- icons : {
62- secondary : o . menuIcon ? ( menu . length ? 'ui-icon-triangle-1-s' : '' ) : ''
63- }
64- } ) ;
60+ . addClass ( "ui-button ui-widget ui-button-text-only ui-menubar-link" )
61+ . wrapInner ( "<span class='ui-button-text'></span>" ) ;
62+ self . _hoverable ( input )
63+
64+ if ( o . menuIcon ) {
65+ input . addClass ( "ui-state-default" ) . append ( "<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>" ) ;
66+ input . removeClass ( "ui-button-text-only" ) . addClass ( "ui-button-text-icon-secondary" ) ;
67+ }
6568
66- if ( ! o . buttons ) {
67- input . addClass ( 'ui-menubar-link' ) . removeClass ( 'ui-state-default' ) ;
68- } ;
69+ if ( ! o . buttons ) {
70+ input . addClass ( 'ui-menubar-link' ) . removeClass ( 'ui-state-default' ) ;
71+ } ;
6972
7073 } ) ;
7174 $ ( document ) . click ( function ( event ) {
You can’t perform that action at this time.
0 commit comments