Browse Source

moving to another computer

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

29
templates/layout_cristina.html

@ -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…
Cancel
Save