aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-12 17:44:13 -0700
committerScott González <scott.gonzalez@gmail.com>2011-05-12 17:44:13 -0700
commit523790b111558d88b83d23e5b3f5c65a58b7dae5 (patch)
tree2c28f6e32b1e0d2bbf1eebe52b27902d27506321 /ui
parent7e2a704a07b13ae4f9731fea5409b36434bb5da4 (diff)
parent50a4186ef949ecaf7ab4977048160820587218d2 (diff)
downloadjquery-ui-523790b111558d88b83d23e5b3f5c65a58b7dae5.tar.gz
jquery-ui-523790b111558d88b83d23e5b3f5c65a58b7dae5.zip
Merge pull request #257 from dcneiner/buttonset-rtl
Fixed #6796
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.button.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 031ac2091..06d2ad6bb 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -352,6 +352,8 @@ $.widget( "ui.buttonset", {
},
refresh: function() {
+ var ltr = this.element.css( "direction" ) === "ltr";
+
this.buttons = this.element.find( this.options.items )
.filter( ":ui-button" )
.button( "refresh" )
@@ -364,10 +366,10 @@ $.widget( "ui.buttonset", {
})
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
.filter( ":first" )
- .addClass( "ui-corner-left" )
+ .addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
.end()
.filter( ":last" )
- .addClass( "ui-corner-right" )
+ .addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
.end()
.end();
},