X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3fcdd9c397c7ccc4385efc04f4a55641d6c79468..0ec2843b0f660a0442ee0d82fa4879c86c8d06ec:/app/views/site/edit.html.erb 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(); }