moving to another computer

This commit is contained in:
ccl 2020-09-16 13:38:24 +02:00
parent f7dcfbb33d
commit 31383c9ef1

View File

@ -150,20 +150,37 @@
<script type="text/javascript">
$(document).ready(function() {
var address = '/?';
var address = '/';
$(".librarian-names").click(function(event){
var theid = $(this).attr('id');
if($(this).hasClass('clicked')==false){
address = address + "librarian=" + theid;
// location.href = address;
$(this).addClass('clicked');
$(".librarian-names").addClass('selected');
if(address.slice(address.length - 1)!='/'){
address = address + "&librarian=" + theid;
// location.href = address;
$(this).addClass('clicked');
$(".librarian-names").addClass('selected');
} else {
address = address + "?librarian=" + theid;
// location.href = address;
$(this).addClass('clicked');
$(".librarian-names").addClass('selected');
}
alert(address);
} else {
$(this).removeClass('clicked');
$(".librarian-names").removeClass('selected');
address = address - ("librarian=" + theid);
if(address.slice(address.length - 1)!='/'){
var remove = "&librarian=" + theid;
address = address.replace(remove, '');
} else {
var remove2 = "librarian=" + theid;
address = address.replace(remove2, '');
}
// address = address - ("librarian=" + theid);
alert(address);
};