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:01:23 -0400 |
commit | 000b1736ac9c379fbb4f0f608f407ad25924fcac (patch) | |
tree | 7e0139bc8cad5066766065ba743c9bbcf2f13e20 | |
parent | 5d4d40f7be1b0d69060eca228f8fce48d453be7e (diff) | |
download | jquery-ui-000b1736ac9c379fbb4f0f608f407ad25924fcac.tar.gz jquery-ui-000b1736ac9c379fbb4f0f608f407ad25924fcac.zip |
Button: Fixed RTL detection to default to LTR. Fixes #7697 - Buttonset: Incorrect corners for disconnected elements.
(cherry picked from commit 08450c3b2dfa652c7866653af93566c9bfa2f2cb)
-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 f7c7486e6..7774ab937 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -377,7 +377,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" ) @@ -391,10 +391,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(); }, |