Lines 74-79
$.fn.selectTabByID = function (tabID) {
Link Here
|
74 |
$("a[href$=\"/" + path + params + "\"]", navmenulist).addClass("current"); |
74 |
$("a[href$=\"/" + path + params + "\"]", navmenulist).addClass("current"); |
75 |
} |
75 |
} |
76 |
|
76 |
|
|
|
77 |
$.cookie("lastborrowernumber", $("#hiddenborrowernumber").val(), { path: "/" }); |
78 |
$.cookie("lastborrowername", $("#hiddenborrowername").val(), { path: "/" }); |
79 |
$.cookie("lastborrowercard", $("#hiddenborrowercard").val(), { path: "/" }); |
80 |
var lastborrowernumber = $.cookie("lastborrowernumber"); |
81 |
var lastborrowername = $.cookie("lastborrowername"); |
82 |
var lastborrowercard = $.cookie("lastborrowercard"); |
83 |
if (typeof lastborrowernumber !== "undefined"){ |
84 |
$("#lastborrowerlink").show(); |
85 |
$("#lastborrowerlink").prop("title", lastborrowername + " (" + lastborrowercard + ")"); |
86 |
$("#lastborrowerlink").prop("href", "/cgi-bin/koha/circ/circulation.pl?borrowernumber=" + lastborrowernumber); |
87 |
$("#lastborrower-window").show(); |
88 |
} else { |
89 |
$("#lastborrower-window").hide(); |
90 |
} |
91 |
if ($("a#logout").length > 0) { |
92 |
$("a#logout").click(function() { |
93 |
delCookie("lastborrowernumber"); |
94 |
delCookie("lastborrowername"); |
95 |
delCookie("lastborrowercard"); |
96 |
}); |
97 |
} |
98 |
$("#lastborrower-remove").click(function() { |
99 |
delCookie("lastborrowernumber"); |
100 |
delCookie("lastborrowername"); |
101 |
delCookie("lastborrowercard"); |
102 |
$("#lastborrower-window").hide(); |
103 |
}); |
77 |
}); |
104 |
}); |
78 |
|
105 |
|
79 |
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html |
106 |
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html |
80 |
- |
|
|