Browse files

made admin page not horrid

  • Loading branch information...
1 parent 4969a6d commit 9a1ee49df66c8c11e1a26e3bb083d29fbe06bbe4 @DungFu committed May 31, 2012
Showing with 12 additions and 14 deletions.
  1. +0 −13 views/layoutMain.ejs
  2. +12 −1 views/main.ejs
View
13 views/layoutMain.ejs
@@ -399,19 +399,6 @@
}
});
- resizeNav = function() {
- var middleWidth = $("#middle").width();
- var newWidth = ((middleWidth-790)/2 + 215 + 51);
- $(".menuWrapper").css("margin-left", newWidth+"px");
- $("#logo").css("margin-left", ((middleWidth-790)/2)+46+"px");
- }
-
- $(window).resize(function() {
- resizeNav();
- });
-
- resizeNav();
-
$("#sidebarBottom").slideUp(0);
$("#"+currentPage).parent().addClass('current');
View
13 views/main.ejs
@@ -2,7 +2,18 @@
<link rel="stylesheet" href="/css/portfolio.css" type="text/css">
<script type="text/javascript">
$(document).ready(function() {
-
+ resizeNav = function() {
+ var middleWidth = $("#middle").width();
+ var newWidth = ((middleWidth-790)/2 + 215 + 51);
+ $(".menuWrapper").css("margin-left", newWidth+"px");
+ $("#logo").css("margin-left", ((middleWidth-790)/2)+46+"px");
+ }
+
+ $(window).resize(function() {
+ resizeNav();
+ });
+
+ resizeNav();
});
</script>
</head>

0 comments on commit 9a1ee49

Please sign in to comment.