X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5966792af5f61d9dd65ff83bfd264e8a8098d307..0ec2843b0f660a0442ee0d82fa4879c86c8d06ec:/app/views/site/edit.html.erb?ds=sidebyside diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index f99f17f1e..abbb5918f 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -22,11 +22,11 @@ $("#tabnav").hide(); $("#content").css("top", "0px"); - <% if t('html.dir') == "ltr" -%> - $("#content").css("left", "0px"); - <% else -%> - $("#content").css("right", "0px"); - <% end -%> + if ($("html").attr("dir") == "ltr") { + $("#content").css("left", "0px"); + } else { + $("#content").css("right", "0px"); + } handleResize(); } @@ -37,11 +37,11 @@ $("#tabnav").show(); $("#content").css("top", "30px"); - <% if t('html.dir') == "ltr" -%> - $("#content").css("left", "185px"); - <% else -%> - $("#content").css("right", "185px"); - <% end -%> + if ($("html").attr("dir") == "ltr") { + $("#content").css("left", "185px"); + } else { + $("#content").css("right", "185px"); + } handleResize(); }