aboutsummaryrefslogtreecommitdiff
path: root/website/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'website/index.js')
-rw-r--r--website/index.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/website/index.js b/website/index.js
index ee36dd3c..8bff4155 100644
--- a/website/index.js
+++ b/website/index.js
@@ -11,7 +11,7 @@ function fixDownloadLink() {
});
$(".backToBar").click(function(event) {
- $("#downloadInfo").hide();
+ toggleButtonBar(true);
});
}
@@ -31,11 +31,21 @@ function showDownloadInfo() {
html = html.substring(0, pos);
var p = $("<p>").html(html).append($("#downloadInfo .downloadActions"));
$("#downloadInfo span:first-child").replaceWith(p);
- $("#downloadInfo").show();
+ toggleButtonBar(false);
}
});
} else {
+ toggleButtonBar(false);
+ }
+}
+
+function toggleButtonBar(showOriginal) {
+ if ( showOriginal ) {
+ $("#downloadInfo").hide();
+ $("#buttonBar").show();
+ } else {
$("#downloadInfo").show();
+ $("#buttonBar").hide();
}
}