View | Details | Raw Unified | Return to bug 9424
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-8 / +2 lines)
Lines 72-92 Link Here
72
                     <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
72
                     <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
73
                  </li>
73
                  </li>
74
           [% END %]
74
           [% END %]
75
           [% IF ( intranetbookbag ) %]
76
              <li>
75
              <li>
77
                  <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor(); delBasket('main', true);">Log out</a>
76
                  <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a>
78
              </li>
77
              </li>
79
           [% ELSE %]
78
           [% ELSE %]
80
              <li>
81
                  <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor();">Log out</a>
82
              </li>
83
           [% END %]
84
           [% ELSE %]
85
              You are not logged in |
79
              You are not logged in |
86
           [% END %]
80
           [% END %]
87
          </ul>
81
          </ul>
88
          <li>
82
          <li>
89
         <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper" onclick="var link=window.open('','Koha_Help','width=600,height=600,toolbar=false,scrollbars=yes'); link.location='/cgi-bin/koha/help.pl'; return false;">Help</a>
83
         <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper">Help</a>
90
          </li>
84
          </li>
91
        </li>
85
        </li>
92
      </ul>
86
      </ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-1 / +18 lines)
Lines 11-16 function _(s) { return s; } // dummy function for gettext Link Here
11
    if($("#header_search #catalog_search").length > 0){ $(document).bind('keydown','Alt+q',function (){ $("#header_search").tabs("select","#catalog_search"); $("#search-form").focus(); }); } else { $(document).bind('keydown','Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); }
11
    if($("#header_search #catalog_search").length > 0){ $(document).bind('keydown','Alt+q',function (){ $("#header_search").tabs("select","#catalog_search"); $("#search-form").focus(); }); } else { $(document).bind('keydown','Alt+q',function(){ location.href="/cgi-bin/koha/catalogue/search.pl"; }); }
12
    $(".focus").focus();
12
    $(".focus").focus();
13
    $(".validated").validate();
13
    $(".validated").validate();
14
    $("#logout").on("click",function(){
15
        logOut();
16
    });
17
    $("#helper").on("click",function(){
18
        openHelp();
19
        return false;
20
    });
14
});
21
});
15
22
16
23
Lines 37-42 function clearHoldFor(){ Link Here
37
	$.cookie("holdfor",null, { path: "/", expires: 0 });
44
	$.cookie("holdfor",null, { path: "/", expires: 0 });
38
}
45
}
39
46
47
function logOut(){
48
    if( typeof delBasket == 'function' ){
49
        delBasket('main', true);
50
    }
51
    clearHoldFor();
52
}
53
54
function openHelp(){
55
    openWindow("/cgi-bin/koha/help.pl","Koha help",600,600);
56
}
57
40
jQuery.fn.preventDoubleFormSubmit = function() {
58
jQuery.fn.preventDoubleFormSubmit = function() {
41
    jQuery(this).submit(function() {
59
    jQuery(this).submit(function() {
42
    $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
60
    $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
43
- 

Return to bug 9424