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 75-95 Link Here
75
                     <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
75
                     <a class="toplinks" href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
76
                  </li>
76
                  </li>
77
           [% END %]
77
           [% END %]
78
           [% IF ( intranetbookbag ) %]
79
              <li>
78
              <li>
80
                  <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor(); delBasket('main', true);">Log out</a>
79
                  <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a>
81
              </li>
80
              </li>
82
           [% ELSE %]
81
           [% ELSE %]
83
              <li>
84
                  <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor();">Log out</a>
85
              </li>
86
           [% END %]
87
           [% ELSE %]
88
              You are not logged in |
82
              You are not logged in |
89
           [% END %]
83
           [% END %]
90
          </ul>
84
          </ul>
91
          <li>
85
          <li>
92
         <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>
86
         <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper">Help</a>
93
          </li>
87
          </li>
94
        </li>
88
        </li>
95
      </ul>
89
      </ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-1 / +19 lines)
Lines 15-20 function _(s) { return s; } // dummy function for gettext Link Here
15
    $(".focus").focus();
15
    $(".focus").focus();
16
    $(".validated").validate();
16
    $(".validated").validate();
17
17
18
    $("#logout").on("click",function(){
19
        logOut();
20
    });
21
    $("#helper").on("click",function(){
22
        openHelp();
23
        return false;
24
    });
25
18
    $('.noEnterSubmit').keypress(function(e){
26
    $('.noEnterSubmit').keypress(function(e){
19
        if ( e.which == 13 ) return false;
27
        if ( e.which == 13 ) return false;
20
    });
28
    });
Lines 42-47 function clearHoldFor(){ Link Here
42
	$.cookie("holdfor",null, { path: "/", expires: 0 });
50
	$.cookie("holdfor",null, { path: "/", expires: 0 });
43
}
51
}
44
52
53
function logOut(){
54
    if( typeof delBasket == 'function' ){
55
        delBasket('main', true);
56
    }
57
    clearHoldFor();
58
}
59
60
function openHelp(){
61
    openWindow("/cgi-bin/koha/help.pl","Koha help",600,600);
62
}
63
45
jQuery.fn.preventDoubleFormSubmit = function() {
64
jQuery.fn.preventDoubleFormSubmit = function() {
46
    jQuery(this).submit(function() {
65
    jQuery(this).submit(function() {
47
    $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
66
    $("body, form input[type='submit'], form button[type='submit'], form a").addClass('waiting');
48
- 

Return to bug 9424