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