Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6da4808 authored by Scott Main's avatar Scott Main
Browse files

update for change Ia39d3bb0, which regressed a resizing hack for IE6.

This now will avoid writing the cookie for the width when IE6 calls
resizeWidth() in order to properly resize the doc-content div (other
browsers to not call resizeWidth() for resizing doc-content because it
has auto width, which IE6 does not perform).
parent a39d3bb0
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -260,20 +260,20 @@ function resizeWidth() {
  classesNav.css({width:sidenavWidth});
  $("#packages-nav").css({width:sidenavWidth});

  if ($(".side-nav-resizable").length) { // Must check if the nav is resizable because IE6 calls resizeWidth() from resizeAll() for all pages
    var basePath = getBaseUri(location.pathname);
    var section = basePath.substring(1,basePath.indexOf("/",1));
    writeCookie("width", sidenavWidth, section, null);
  }
}

/* For IE6 only,
 * because it can't properly perform auto width for "doc-content" div,
 * avoiding this for all browsers provides better performance */
function resizeAll() {
  resizeHeight();
  if ($(".side-nav-resizable").length) {
  resizeWidth();
}
}

function getBaseUri(uri) {
  var intlUrl = (uri.substring(0,6) == "/intl/");