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 21-24 Link Here
21
[% END %]
21
[% END %]
22
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
22
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
23
23
24
[% INCLUDE js_includes.inc %]
24
[% UNLESS ( footerjs ) %]
25
    [% INCLUDE js_includes.inc %]
26
[% 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 (+24 lines)
Lines 84-86 Link Here
84
        });
84
        });
85
    </script>
85
    </script>
86
[% END %]
86
[% END %]
87
88
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
89
    [% IF ( CircAutocompl ) %]
90
        <script type="text/javascript">
91
            $(document).ready(function(){
92
                $( "#findborrower" ).autocomplete({
93
                    source: "/cgi-bin/koha/circ/ysearch.pl",
94
                    minLength: 3,
95
                    select: function( event, ui ) {
96
                        $( "#findborrower" ).val( ui.item.cardnumber );
97
                        $("#patronsearch").submit();
98
                        return false;
99
                    }
100
                })
101
                .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
102
                    return $( "<li></li>" )
103
                    .data( "ui-autocomplete-item", item )
104
                    .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
105
                    .appendTo( ul );
106
                };
107
            });
108
        </script>
109
    [% END %]
110
[% END %]
(-)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 208-212 var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This Link Here
208
    </div>
198
    </div>
209
</div>
199
</div>
210
200
201
[% MACRO jsinclude BLOCK %]
202
    <script type="text/javascript">
203
    //<![CDATA[
204
    var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
205
        $(document).ready(function(){
206
            $(".news_delete").on("click", function(){
207
                return confirmDelete(MSG_CONFIRM_DELETE);
208
            });
209
        });
210
    //]]>
211
    </script>
212
[% END %]
211
<!-- the main div is closed in intranet-bottom.inc -->
213
<!-- the main div is closed in intranet-bottom.inc -->
212
[% INCLUDE 'intranet-bottom.inc' %]
214
[% INCLUDE 'intranet-bottom.inc' %]
213
- 

Return to bug 17418