moving to another computer
This commit is contained in:
parent
f7dcfbb33d
commit
31383c9ef1
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user