File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ $.widget( "ui.buttonset", {
379
379
} ,
380
380
381
381
refresh : function ( ) {
382
- var ltr = this . element . css ( "direction" ) === "ltr " ;
382
+ var rtl = this . element . css ( "direction" ) === "rtl " ;
383
383
384
384
this . buttons = this . element . find ( this . options . items )
385
385
. filter ( ":ui-button" )
@@ -393,10 +393,10 @@ $.widget( "ui.buttonset", {
393
393
} )
394
394
. removeClass ( "ui-corner-all ui-corner-left ui-corner-right" )
395
395
. filter ( ":first" )
396
- . addClass ( ltr ? "ui-corner-left " : "ui-corner-right " )
396
+ . addClass ( rtl ? "ui-corner-right " : "ui-corner-left " )
397
397
. end ( )
398
398
. filter ( ":last" )
399
- . addClass ( ltr ? "ui-corner-right " : "ui-corner-left " )
399
+ . addClass ( rtl ? "ui-corner-left " : "ui-corner-right " )
400
400
. end ( )
401
401
. end ( ) ;
402
402
} ,
You can’t perform that action at this time.
0 commit comments