Former-commit-id: 997f42a531c1a8fd4dac340129cea645f7c30fb8
This commit is contained in:
Henrique Dias
2016-12-30 16:22:26 +00:00
parent 7d9fb5995a
commit 103457f4e3
8 changed files with 260 additions and 81 deletions

View File

@@ -185,7 +185,7 @@ function resetSearchText() {
let box = document.querySelector('#search > div div');
if (user.AllowCommands) {
box.innerHTML = `Search or use one of your supported commands: ${user.Commands.join(", ")} `;
box.innerHTML = `Search or use one of your supported commands: ${user.Commands.join(", ")}.`;
} else {
box.innerHTML = "Type and press enter to search.";
}
@@ -323,6 +323,11 @@ document.addEventListener("DOMContentLoaded", function(event) {
if (user.AllowEdit) {
buttons.delete.addEventListener("click", deleteEvent);
}
document.getElementById("breadcrumbs-button").addEventListener("click", event => {
event.currentTarget.classList.toggle("active");
document.getElementById("breadcrumbs").classList.toggle("active");
});
setupSearch();
return false;