1 function _(s) { return s } // dummy function for gettext
2 function confirmDelete(message) {
3 return (confirm(message) ? true : false);
7 newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes,resizeable=yes');
10 $(document).ready(function(){
11 $(".close").click(function(){
15 // clear the basket when user logs out
16 $("#logout").click(function(){
17 var nameCookie = "bib_list";
18 var valCookie = readCookie(nameCookie);
19 if (valCookie) { // basket has contents
21 delCookie(nameCookie);
29 // build Change Language menus
30 YAHOO.util.Event.onContentReady("changelanguage", function () {
31 $(".sublangs").each(function(){
32 var menuid = $(this).attr("id");
33 var menuid = menuid.replace("show","");
35 var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
36 function positionoMenu() {
37 oMenu.align("bl", "tl");
39 oMenu.subscribe("beforeShow", function () {
40 if (this.getRoot() == this) {
45 oMenu.cfg.setProperty("context", ["show"+menuid, "bl", "tl"]);
46 function onYahooClick(p_oEvent) {
47 // Position and display the menu
50 // Stop propagation and prevent the default "click" behavior
51 YAHOO.util.Event.stopEvent(p_oEvent);
53 YAHOO.util.Event.addListener("show"+menuid, "click", onYahooClick);
54 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
60 YAHOO.util.Event.onContentReady("listsmenu", function () {
61 YAHOO.widget.Menu.prototype.onRender = function () { };
62 $("#listsmenu").css("display","block").css("visibility","hidden");
63 $("#listsmenulink").attr("href","#");
64 var listMenu = new YAHOO.widget.Menu("listsmenu");
66 listMenu.cfg.setProperty("context", ["listsmenulink", "tr", "br"]);
67 listMenu.cfg.setProperty("effect",{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.05});
68 listMenu.subscribe("beforeShow",positionlistMenu);
69 listMenu.subscribe("show", listMenu.focus);
70 function positionlistMenu() {
71 listMenu.align("tr", "br");
73 YAHOO.util.Event.addListener("listsmenulink", "click", listMenu.show, null, listMenu);
74 YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionlistMenu);
77 jQuery.fn.preventDoubleFormSubmit = function() {
78 jQuery(this).submit(function() {
79 if (this.beenSubmitted)
82 this.beenSubmitted = true;