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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-2 lines)
Lines 567-574 Link Here
567
                $("#budgetsTabs li:eq([% tab | html %]) a").tab("show");
567
                $("#budgetsTabs li:eq([% tab | html %]) a").tab("show");
568
            [% END %]
568
            [% END %]
569
569
570
            $('[data-bs-toggle="tooltip"]').tooltip();
571
572
            $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
570
            $("#activeperiodst,#inactiveperiodst").dataTable($.extend(true, {}, dataTablesDefaults, {
573
                "columnDefs": [
571
                "columnDefs": [
574
                    { "targets": [ -1 ], "orderable": false, "searchable":  false },
572
                    { "targets": [ -1 ], "orderable": false, "searchable":  false },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-2 lines)
Lines 764-771 Link Here
764
                    e.preventDefault();
764
                    e.preventDefault();
765
                    alert(_("This fund has sub funds. It cannot be deleted."));
765
                    alert(_("This fund has sub funds. It cannot be deleted."));
766
                });
766
                });
767
768
                $('[data-bs-toggle="tooltip"]').tooltip();
769
            });
767
            });
770
        </script>
768
        </script>
771
    [% END %]
769
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqplan.tt (-2 lines)
Lines 345-352 Link Here
345
                $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text());
345
                $("#budget_est_"+budget_id).text($("#budget_tot_"+budget_id).prev().text());
346
                $("#budget_est_"+budget_id).css("color","green");
346
                $("#budget_est_"+budget_id).css("color","green");
347
            });
347
            });
348
349
            $('[data-bs-toggle="tooltip"]').tooltip();
350
        });
348
        });
351
    </script>
349
    </script>
352
[% END %]
350
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-2 / +1 lines)
Lines 318-324 Link Here
318
                                                            [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %]
318
                                                            [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %]
319
                                                        [% END %]
319
                                                        [% END %]
320
                                                    [% END %]
320
                                                    [% END %]
321
                                                    <span class="library_limitation" title="[% branches_str | html %]">
321
                                                    <span class="library_limitation" data-bs-toggle="tooltip" title="[% branches_str | html %]">
322
                                                        [% IF loo.branches.size > 1 %]
322
                                                        [% IF loo.branches.size > 1 %]
323
                                                            <span>[% loo.branches.size | html %] library limitations</span>
323
                                                            <span>[% loo.branches.size | html %] library limitations</span>
324
                                                        [% ELSE %]
324
                                                        [% ELSE %]
Lines 421-427 Link Here
421
            $('#category_search').change(function() {
421
            $('#category_search').change(function() {
422
                $('#category').submit();
422
                $('#category').submit();
423
            });
423
            });
424
            $(".library_limitation").tooltip();
425
424
426
            $("#delete_category").on('submit', function(){
425
            $("#delete_category").on('submit', function(){
427
                return confirm(_("Are you sure you want to delete this authorized value category?"));
426
                return confirm(_("Are you sure you want to delete this authorized value category?"));
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-2 / +2 lines)
Lines 495-506 Link Here
495
                            [% library_str = library_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
495
                            [% library_str = library_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %]
496
                        [% END %]
496
                        [% END %]
497
                    [% END %]
497
                    [% END %]
498
                    <span class="library_limitation" title="[% library_str | html %]">
498
                    <span class="library_limitation" data-bs-toggle="tooltip" title="[% library_str | html %]">
499
                        [% IF library_limits.count > 1 %]
499
                        [% IF library_limits.count > 1 %]
500
                            <span>[% library_limits.count | html %] library limitations</span>
500
                            <span>[% library_limits.count | html %] library limitations</span>
501
                        [% ELSE %]
501
                        [% ELSE %]
502
                            <span>[% library_limits.count | html %] library limitation</span>
502
                            <span>[% library_limits.count | html %] library limitation</span>
503
                        [% END %]
503
                        [% END %]
504
                    </span>
504
                [% ELSE %]
505
                [% ELSE %]
505
                    <span>No limitation</span>
506
                    <span>No limitation</span>
506
                [% END %]
507
                [% END %]
Lines 560-566 Link Here
560
            $("#itemtype").on("blur",function(){
561
            $("#itemtype").on("blur",function(){
561
                toUC(this);
562
                toUC(this);
562
            });
563
            });
563
            $(".library_limitation").tooltip();
564
            if( $("#icons .tab-pane.active").length < 1 ){
564
            if( $("#icons .tab-pane.active").length < 1 ){
565
                $("#icons a:first").tab("show");
565
                $("#icons a:first").tab("show");
566
            }
566
            }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-2 lines)
Lines 543-550 Link Here
543
        if ($filter_container.data('filter')) {
543
        if ($filter_container.data('filter')) {
544
          $('#filter').val($filter_container.data('filter'));
544
          $('#filter').val($filter_container.data('filter'));
545
        }
545
        }
546
547
        $('[data-bs-toggle="tooltip"]').tooltip();
548
    });
546
    });
549
    </script>
547
    </script>
550
[% END %]
548
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 lines)
Lines 1625-1631 Link Here
1625
                    $("#return_date_remember").hide();
1625
                    $("#return_date_remember").hide();
1626
                }
1626
                }
1627
            });
1627
            });
1628
            $('[data-bs-toggle="tooltip"]').tooltip();
1629
1628
1630
            $(".printcheckinslip").on("click", function(e){
1629
            $(".printcheckinslip").on("click", function(e){
1631
                e.preventDefault();
1630
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-3 lines)
Lines 200-208 Link Here
200
                var club_id = $(this).data("id");
200
                var club_id = $(this).data("id");
201
                SearchToHold( club_id );
201
                SearchToHold( club_id );
202
            });
202
            });
203
            $('[data-bs-toggle="tooltip"]').on("click",function(e){
204
                e.stopPropagation();
205
            }).tooltip();
206
        });
203
        });
207
204
208
        function ConfirmDeleteTemplate( id, name ) {
205
        function ConfirmDeleteTemplate( id, name ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-6 lines)
Lines 363-374 Link Here
363
                    return confirmDelete(_("Are you sure you want to delete this course?"));
363
                    return confirmDelete(_("Are you sure you want to delete this course?"));
364
                [% END %]
364
                [% END %]
365
            });
365
            });
366
            $(".disabled").tooltip().on("click", function(e){
367
                e.preventDefault();
368
                if( $(this).hasClass("checkedout") ){
369
                    alert(_("This item cannot be removed. It is checked out"));
370
                }
371
            });
372
        });
366
        });
373
    </script>
367
    </script>
374
[% END %]
368
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 lines)
Lines 806-813 Link Here
806
        }
806
        }
807
807
808
        $(document).ready(function () {
808
        $(document).ready(function () {
809
            $("#info_digests").tooltip();
810
811
            $("#finesholdsissues a[data-bs-toggle='tab']").on(
809
            $("#finesholdsissues a[data-bs-toggle='tab']").on(
812
                "shown.bs.tab",
810
                "shown.bs.tab",
813
                function (e) {
811
                function (e) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-2 lines)
Lines 1965-1972 Link Here
1965
                load_group_subgroups();
1965
                load_group_subgroups();
1966
            [% END %]
1966
            [% END %]
1967
1967
1968
            $('[data-bs-toggle="tooltip"]').tooltip();
1969
1970
            $('#limit').change(function() {
1968
            $('#limit').change(function() {
1971
                $('#limitselect').submit();
1969
                $('#limitselect').submit();
1972
            });
1970
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-1 lines)
Lines 528-534 Link Here
528
            });
528
            });
529
529
530
            if ( window.isSecureContext ) {
530
            if ( window.isSecureContext ) {
531
                $('[data-bs-toggle="tooltip"]').tooltip();
532
                $(".get-file").on("click", function(e){
531
                $(".get-file").on("click", function(e){
533
                    e.preventDefault();
532
                    e.preventDefault();
534
                    if( navigator.clipboard && navigator.clipboard.writeText){
533
                    if( navigator.clipboard && navigator.clipboard.writeText){
(-)a/koha-tmpl/intranet-tmpl/prog/js/catalog.js (-4 lines)
Lines 118-127 $(document).ready(function() { Link Here
118
    });
118
    });
119
    $("#export").remove(); // Hide embedded export form if JS menus available
119
    $("#export").remove(); // Hide embedded export form if JS menus available
120
120
121
    $('[data-bs-toggle="tooltip"]').on("click",function(e){
122
        e.stopPropagation();
123
    }).tooltip();
124
125
    $(".addtolist").on("click", function (e) {
121
    $(".addtolist").on("click", function (e) {
126
        e.preventDefault();
122
        e.preventDefault();
127
        var shelfnumber = $(this).data("shelfnumber");
123
        var shelfnumber = $(this).data("shelfnumber");
(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (-1 lines)
Lines 39-45 $(document).ready(function(){ Link Here
39
        return window.confirm( __("Are you sure you want to delete this message? This cannot be undone.") );
39
        return window.confirm( __("Are you sure you want to delete this message? This cannot be undone.") );
40
    });
40
    });
41
41
42
    $("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip();
43
    $("#exportcheckins").click(function(){
42
    $("#exportcheckins").click(function(){
44
        export_barcodes();
43
        export_barcodes();
45
        $(".btn-group").removeClass("open");
44
        $(".btn-group").removeClass("open");
(-)a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js (-4 lines)
Lines 1-6 Link Here
1
$(document).ready(function(){
1
$(document).ready(function(){
2
    $("#info_digests").tooltip();
3
4
    var message_prefs_dirty = false;
2
    var message_prefs_dirty = false;
5
    $('#memberentry_messaging_prefs > *').change(function() {
3
    $('#memberentry_messaging_prefs > *').change(function() {
6
        message_prefs_dirty = true;
4
        message_prefs_dirty = true;
Lines 78-83 $(document).ready(function(){ Link Here
78
    $(".pmp_phone").click(function(){
76
    $(".pmp_phone").click(function(){
79
        toggle_digest(Number($(this).attr("id").replace("phone", "")));
77
        toggle_digest(Number($(this).attr("id").replace("phone", "")));
80
    });
78
    });
81
82
    $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip();
83
});
79
});
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js (-2 lines)
Lines 84-89 $(document).ready(function() { Link Here
84
        "pagingType":  "full",
84
        "pagingType":  "full",
85
        "autoWidth": false,
85
        "autoWidth": false,
86
    }, stock_rotation_table_settings);
86
    }, stock_rotation_table_settings);
87
88
    $('[data-bs-toggle="tooltip"]').tooltip();
89
});
87
});
(-)a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js (-1 lines)
Lines 21-25 function popup(subscriptionid) { Link Here
21
    $("#mana-subscription-share").click(function() {
21
    $("#mana-subscription-share").click(function() {
22
        window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share";
22
        window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share";
23
    });
23
    });
24
    $('[data-bs-toggle="tooltip"]').tooltip();
25
 });
24
 });
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (+1 lines)
Lines 373-378 $(document).ready(function () { Link Here
373
        $("#setlibrary_panel").removeClass("setlibrary_panel_open").html("").hide();
373
        $("#setlibrary_panel").removeClass("setlibrary_panel_open").html("").hide();
374
    });
374
    });
375
375
376
    $('[data-bs-toggle="tooltip"]').tooltip();
376
});
377
});
377
378
378
function removeLastBorrower() {
379
function removeLastBorrower() {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-3 lines)
Lines 263-270 Link Here
263
    [% INCLUDE 'datatables.inc' %]
263
    [% INCLUDE 'datatables.inc' %]
264
    <script>
264
    <script>
265
        $(document).ready(function(){
265
        $(document).ready(function(){
266
            $("#info_digests").tooltip();
267
268
            function toggle_digest(id){
266
            function toggle_digest(id){
269
                let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
267
                let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
270
                let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
268
                let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
271
- 

Return to bug 37748