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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-16 / +15 lines)
Lines 40-64 Link Here
40
    //]]>
40
    //]]>
41
    </script>
41
    </script>
42
[% END %]
42
[% END %]
43
[% IF ( virtualshelves || intranetbookbag ) %]
43
<script type="text/javascript" language="javascript">
44
<script type="text/javascript" language="javascript">
44
    //<![CDATA[
45
    //<![CDATA[
45
    [% IF ( intranetbookbag ) %]var MSG_BASKET_EMPTY = _("Your cart is currently empty");
46
    var MSG_BASKET_EMPTY = _("Your cart is currently empty");
46
        var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
47
    var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
47
        var MSG_RECORD_ADDED = _("This item has been added to your cart");
48
    var MSG_RECORD_ADDED = _("This item has been added to your cart");
48
        var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
49
    var MSG_NRECORDS_ADDED = _(" item(s) added to your cart");
49
        var MSG_NRECORDS_IN_BASKET = _("already in your cart");
50
    var MSG_NRECORDS_IN_BASKET = _("already in your cart");
50
        var MSG_NO_RECORD_SELECTED = _("No item was selected");
51
    var MSG_NO_RECORD_SELECTED = _("No item was selected");
51
        var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
52
    var MSG_NO_RECORD_ADDED = _("No item was added to your cart");
52
        var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
53
    var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
53
        var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
54
    var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
54
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
55
    var MSG_IN_YOUR_CART = _("Items in your cart: ");
55
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
56
    var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
56
    [% END %]
57
    //]]>
57
    //]]>
58
    </script>
58
</script>
59
    [% IF ( virtualshelves || intranetbookbag ) %]
59
<script type="text/javascript" language="javascript" src="[% themelang %]/js/basket.js"></script>
60
        <script type="text/javascript" language="javascript" src="[% themelang %]/js/basket.js"></script>
60
[% END %]
61
    [% END %]
62
[% IF LocalCoverImages %]
61
[% IF LocalCoverImages %]
63
<script type="text/javascript" language="javascript" src="[% themelang %]/js/localcovers.js"></script>
62
<script type="text/javascript" language="javascript" src="[% themelang %]/js/localcovers.js"></script>
64
<script type="text/javascript" language="javascript">
63
<script type="text/javascript" language="javascript">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-6 / +2 lines)
Lines 70-83 Link Here
70
            <span class="loggedinusername">
70
            <span class="loggedinusername">
71
                [% loggedinusername %]
71
                [% loggedinusername %]
72
            </span>
72
            </span>
73
            [% IF ( intranetbookbag ) %]
73
            ( <a id="logout" class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log out</a> ) |
74
            ( <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor(); delBasket('main', true);">Log out</a> ) |
75
            [% ELSE %]
76
            ( <a class="toplinks" href="/cgi-bin/koha/mainpage.pl?logout.x=1" onclick="clearHoldFor();">Log out</a> ) |
77
            [% END %]
78
        [% ELSE %]
74
        [% ELSE %]
79
            You are not logged in |
75
            You are not logged in |
80
        [% END %]
76
        [% END %]
81
        <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>
77
        <a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper">Help</a>
82
    </div>
78
    </div>
83
</div>	
79
</div>	
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js (-5 / +21 lines)
Lines 1-7 Link Here
1
// staff-global.js
1
// staff-global.js
2
if ( KOHA === undefined ) var KOHA = {};
2
if ( KOHA === undefined ) var KOHA = {};
3
3
4
function _(s) { return s } // dummy function for gettext
4
function _(s) { return s; } // dummy function for gettext
5
5
6
 $(document).ready(function() {
6
 $(document).ready(function() {
7
    $('#header_search').tabs().bind('tabsshow', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); });
7
    $('#header_search').tabs().bind('tabsshow', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); });
Lines 10-18 function _(s) { return s } // dummy function for gettext Link Here
10
    if($("#header_search #circ_search").length > 0){ $(document).bind('keydown','Alt+u',function (){ $("#header_search").tabs("select","#circ_search"); $("#findborrower").focus(); }); } else { $(document).bind('keydown','Alt+u',function(){ location.href="/cgi-bin/koha/circ/circulation.pl"; }); }
10
    if($("#header_search #circ_search").length > 0){ $(document).bind('keydown','Alt+u',function (){ $("#header_search").tabs("select","#circ_search"); $("#findborrower").focus(); }); } else { $(document).bind('keydown','Alt+u',function(){ location.href="/cgi-bin/koha/circ/circulation.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"; }); }
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
    $("#logout").click(function(){
14
        logOut();
15
    });
16
    $("#helper").click(function(){
17
        openHelp();
18
        return false;
19
    });
13
 });
20
 });
14
21
15
 
16
             YAHOO.util.Event.onContentReady("header", function () {
22
             YAHOO.util.Event.onContentReady("header", function () {
17
				var oMoremenu = new YAHOO.widget.Menu("moremenu", { zindex: 2 });
23
				var oMoremenu = new YAHOO.widget.Menu("moremenu", { zindex: 2 });
18
24
Lines 48-54 function _(s) { return s } // dummy function for gettext Link Here
48
YAHOO.util.Event.onContentReady("changelanguage", function () {
54
YAHOO.util.Event.onContentReady("changelanguage", function () {
49
	$(".sublangs").each(function(){
55
	$(".sublangs").each(function(){
50
		var menuid = $(this).attr("id");
56
		var menuid = $(this).attr("id");
51
		var menuid = menuid.replace("show","");
57
        menuid = menuid.replace("show","");
52
58
53
		var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
59
		var oMenu = new YAHOO.widget.Menu("sub"+menuid, { zindex: 2 });
54
		function positionoMenu() {
60
		function positionoMenu() {
Lines 72-78 YAHOO.util.Event.onContentReady("changelanguage", function () { Link Here
72
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
78
		YAHOO.widget.Overlay.windowResizeEvent.subscribe(positionoMenu);
73
	});
79
	});
74
});
80
});
75
			
81
76
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html
82
// http://jennifermadden.com/javascript/stringEnterKeyDetector.html
77
function checkEnter(e){ //e is event object passed from function invocation
83
function checkEnter(e){ //e is event object passed from function invocation
78
	var characterCode; // literal character code will be stored in this variable
84
	var characterCode; // literal character code will be stored in this variable
Lines 95-100 function clearHoldFor(){ Link Here
95
	$.cookie("holdfor",null, { path: "/", expires: 0 });
101
	$.cookie("holdfor",null, { path: "/", expires: 0 });
96
}
102
}
97
103
104
function logOut(){
105
    if( typeof delBasket == 'function' ){
106
        delBasket('main', true);
107
    }
108
    clearHoldFor();
109
}
110
111
function openHelp(){
112
    openWindow("/cgi-bin/koha/help.pl","Koha help",600,600);
113
}
114
98
jQuery.fn.preventDoubleFormSubmit = function() {
115
jQuery.fn.preventDoubleFormSubmit = function() {
99
    jQuery(this).submit(function() {
116
    jQuery(this).submit(function() {
100
        if (this.beenSubmitted)
117
        if (this.beenSubmitted)
101
- 

Return to bug 9424