Introduced a new proposal status: proposed. Moved some templates around and created macros.

This commit is contained in:
Sander Ferdinand 2018-07-04 19:50:36 +02:00
parent 29e5a9eb95
commit b34d06d49e
11 changed files with 88 additions and 134 deletions

View file

@ -1,5 +1,10 @@
function clickDataHref(d){
window.location.href = d.getAttribute("data-href");
function proposalNavbarclickDataHref(d){
if(d.classList.contains('active')){
// if the navbar button is already active, remove filter, go to proposals page
window.location.href = '/proposals'
} else {
window.location.href = d.getAttribute("data-href");
}
}
function hideShow(element_id) {