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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-1 / +3 lines)
Lines 22-25 Link Here
22
[% END %]
22
[% END %]
23
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
23
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
24
24
25
[% INCLUDE js_includes.inc %]
25
[% UNLESS ( footerjs ) %]
26
    [% INCLUDE js_includes.inc %]
27
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc (+4 lines)
Lines 66-70 Link Here
66
    [% END %]
66
    [% END %]
67
[% END %]
67
[% END %]
68
    <span id="audio-alert"></span>
68
    <span id="audio-alert"></span>
69
    [% IF ( footerjs ) %]
70
        [% INCLUDE js_includes.inc %]
71
        [% jsinclude # Parse the page template's JavaScript block if necessary %]
72
    [% END %]
69
    </body>
73
    </body>
70
</html>
74
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (+25 lines)
Lines 83-85 Link Here
83
        });
83
        });
84
    </script>
84
    </script>
85
[% END %]
85
[% END %]
86
87
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
88
    [% IF ( CircAutocompl ) %]
89
        <script type="text/javascript">
90
            $(document).ready(function(){
91
                $( "#findborrower" ).autocomplete({
92
                    source: "/cgi-bin/koha/circ/ysearch.pl",
93
                    minLength: 3,
94
                    select: function( event, ui ) {
95
                        $( "#findborrower" ).val( ui.item.cardnumber );
96
                        $("#patronsearch").submit();
97
                        return false;
98
                    }
99
                })
100
                .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
101
                    return $( "<li></li>" )
102
                    .data( "ui-autocomplete-item", item )
103
                    .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
104
                    .appendTo( ul );
105
                };
106
            });
107
        </script>
108
    [% END %]
109
[% END %]
110
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc (-22 / +1 lines)
Lines 1-25 Link Here
1
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
1
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
2
//<![CDATA[
3
$(document).ready(function(){
4
    $( "#findborrower" ).autocomplete({
5
        source: "/cgi-bin/koha/circ/ysearch.pl",
6
        minLength: 3,
7
        select: function( event, ui ) {
8
            $( "#findborrower" ).val( ui.item.cardnumber );
9
            $("#patronsearch").submit();
10
            return false;
11
        }
12
    })
13
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
14
        return $( "<li></li>" )
15
        .data( "ui-autocomplete-item", item )
16
        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
17
        .appendTo( ul );
18
    };
19
20
});
21
//]]>
22
</script>[% END %]
23
    <div id="circ_search" class="residentsearch">
2
    <div id="circ_search" class="residentsearch">
24
    <p class="tip">Enter patron card number or partial name:</p>
3
    <p class="tip">Enter patron card number or partial name:</p>
25
    <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
4
    <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-12 / +13 lines)
Lines 1-19 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha staff client</title>
4
<title>Koha staff client</title>
4
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/mainpage.css" />
5
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/mainpage.css" />
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
<style type="text/css"> </style>
7
<script type="text/javascript">
8
//<![CDATA[
9
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
10
    $(document).ready(function(){
11
        $(".news_delete").on("click", function(){
12
            return confirmDelete(MSG_CONFIRM_DELETE);
13
        });
14
    });
15
//]]>
16
</script>
17
</head>
7
</head>
18
<body id="main_intranet-main" class="main">
8
<body id="main_intranet-main" class="main">
19
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
Lines 200-204 var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This Link Here
200
    </div>
190
    </div>
201
</div>
191
</div>
202
192
193
[% MACRO jsinclude BLOCK %]
194
    <script type="text/javascript">
195
    //<![CDATA[
196
    var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
197
        $(document).ready(function(){
198
            $(".news_delete").on("click", function(){
199
                return confirmDelete(MSG_CONFIRM_DELETE);
200
            });
201
        });
202
    //]]>
203
    </script>
204
[% END %]
203
<!-- the main div is closed in intranet-bottom.inc -->
205
<!-- the main div is closed in intranet-bottom.inc -->
204
[% INCLUDE 'intranet-bottom.inc' %]
206
[% INCLUDE 'intranet-bottom.inc' %]
205
- 

Return to bug 17418