diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 15:53:30 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-17 15:53:30 -0800 |
commit | 7c2c77f3c15f32522381c2599a496a3807d4b454 (patch) | |
tree | 1bbf67eab062065a09fe7acc4fed819837e4eb6f /lib/gallery.common.js | |
parent | b8e94302bd673f89beb63530bbb7cdfe3ce56da9 (diff) | |
parent | 9ae9dabe68ab83d34a3dcdc5092b454b8282a6cd (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r-- | lib/gallery.common.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 9aaac1ce..0bd14915 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -179,8 +179,15 @@ var button = $(this).find("input[type=submit]"); $(".g-short-form").addClass("ui-helper-clearfix"); - $(".g-short-form input[type=text]").addClass("ui-corner-left"); - $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-right"); + + // Place button's on the left for RTL languages + if ($(".rtl").length) { + $(".g-short-form input[type=text]").addClass("ui-corner-right"); + $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-left"); + } else { + $(".g-short-form input[type=text]").addClass("ui-corner-left"); + $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-right"); + } // Set the input value equal to label text if (input.val() == "") { |