aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-09-24 19:49:22 +0200
committerFelix Nagel <info@felixnagel.com>2011-09-24 19:49:22 +0200
commit55184e1e077a4a39292b9985f47aa2abc1c32702 (patch)
treeb123c4584692e40a4be6526b8000aa537c92ee37 /ui/jquery.ui.button.js
parent17c8ec587dbf41079cf833d22983ebe1d6d16094 (diff)
parentcf3e655be19c6a64d21c494a2adbba6526cb6e86 (diff)
downloadjquery-ui-55184e1e077a4a39292b9985f47aa2abc1c32702.tar.gz
jquery-ui-55184e1e077a4a39292b9985f47aa2abc1c32702.zip
Merge branch 'master' of github.com:jquery/jquery-ui into selectmenu
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r--ui/jquery.ui.button.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 89c52d007..1d9393d37 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -379,7 +379,7 @@ $.widget( "ui.buttonset", {
},
refresh: function() {
- var ltr = this.element.css( "direction" ) === "ltr";
+ var rtl = this.element.css( "direction" ) === "rtl";
this.buttons = this.element.find( this.options.items )
.filter( ":ui-button" )
@@ -393,10 +393,10 @@ $.widget( "ui.buttonset", {
})
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
.filter( ":first" )
- .addClass( ltr ? "ui-corner-left" : "ui-corner-right" )
+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
.end()
.filter( ":last" )
- .addClass( ltr ? "ui-corner-right" : "ui-corner-left" )
+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
.end()
.end();
},