Eliminate interpolation in edit JS

This commit is contained in:
John Firebaugh 2012-09-29 09:20:05 -07:00 committed by Tom Hughes
parent 3fcdd9c397
commit 0ec2843b0f

View file

@ -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();
}