diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-09-06 11:00:42 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-09-06 11:00:42 -0400 |
commit | 08450c3b2dfa652c7866653af93566c9bfa2f2cb (patch) | |
tree | 58db3040fb2b3ba7b5de33bbac3d5bad007c4a42 /ui | |
parent | 02c821da6e10bbdd31424949d73a1c2c603108fe (diff) | |
download | jquery-ui-08450c3b2dfa652c7866653af93566c9bfa2f2cb.tar.gz jquery-ui-08450c3b2dfa652c7866653af93566c9bfa2f2cb.zip |
Button: Fixed RTL detection to default to LTR. Fixes #7697 - Buttonset: Incorrect corners for disconnected elements.
Diffstat (limited to 'ui')
-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(); }, |