We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c821d commit 08450c3Copy full SHA for 08450c3
1 file changed
ui/jquery.ui.button.js
@@ -379,7 +379,7 @@ $.widget( "ui.buttonset", {
379
},
380
381
refresh: function() {
382
- var ltr = this.element.css( "direction" ) === "ltr";
+ var rtl = this.element.css( "direction" ) === "rtl";
383
384
this.buttons = this.element.find( this.options.items )
385
.filter( ":ui-button" )
@@ -393,10 +393,10 @@ $.widget( "ui.buttonset", {
393
})
394
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
395
.filter( ":first" )
396
- .addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
397
.end()
398
.filter( ":last" )
399
- .addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
400
401
.end();
402
0 commit comments