Browse Source

moving to another computer

master
ccl 4 years ago
parent
commit
31383c9ef1
  1. 23
      templates/layout_cristina.html

23
templates/layout_cristina.html

@ -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)!='/'){
address = address + "&librarian=" + theid;
// location.href = address; // location.href = address;
$(this).addClass('clicked'); $(this).addClass('clicked');
$(".librarian-names").addClass('selected'); $(".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);
}; };

Loading…
Cancel
Save