diff options
author | Felix Nagel <info@felixnagel.com> | 2011-09-24 19:49:22 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-09-24 19:49:22 +0200 |
commit | 55184e1e077a4a39292b9985f47aa2abc1c32702 (patch) | |
tree | b123c4584692e40a4be6526b8000aa537c92ee37 /ui/jquery.ui.button.js | |
parent | 17c8ec587dbf41079cf833d22983ebe1d6d16094 (diff) | |
parent | cf3e655be19c6a64d21c494a2adbba6526cb6e86 (diff) | |
download | jquery-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.js | 6 |
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(); }, |