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

Commit 0a53dc49 authored by Scott Main's avatar Scott Main
Browse files

docs: make only the expando link not-underlined

and wait until close animation is done before collapsing the toggle

Change-Id: Ie75f99a5cf5fcc2cbf33bb46a00ce79cd688ce5c
parent e5781194
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -831,7 +831,7 @@ p.table-caption {
  display:none;
}

.toggle-content a {
.toggle-content a[href="#"] {
  text-decoration:none;
}

+6 −4
Original line number Diff line number Diff line
@@ -582,13 +582,15 @@ function toggleContent(obj) {
  var toggleMe = $(".toggle-content-toggleme",div);
  if (div.hasClass("closed")) { // if it's closed, open it
    toggleMe.slideDown();
    $(".toggle-content-text", obj).toggle();
    div.removeClass("closed").addClass("open");
    $(".toggle-content-img", div).attr("title", "hide").attr("src", toRoot + "assets/images/triangle-opened.png");
  } else { // if it's open, close it
    toggleMe.slideUp();
    toggleMe.slideUp('fast', function() {  // Wait until the animation is done before closing arrow
      $(".toggle-content-text", obj).toggle();
      div.removeClass("open").addClass("closed");
      $(".toggle-content-img", div).attr("title", "show").attr("src", toRoot + "assets/images/triangle-closed.png");
    });
  }
  $(".toggle-content-text", obj).toggle();
  return false;
}