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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-18 lines)
Lines 2053-2076 li { Link Here
2053
            }
2053
            }
2054
        }
2054
        }
2055
    }
2055
    }
2056
2057
    .dropdown-menu {
2058
        background-color: #FFFFFF;
2059
        color: #000;
2060
        height: fit-content;
2061
        top: 100%;
2062
2063
        a {
2064
            color: #000;
2065
2066
            &:hover {
2067
                background-color: #FFFFFF;
2068
                background-image: none;
2069
                color: #000;
2070
                text-decoration: underline;
2071
            }
2072
        }
2073
    }
2074
}
2056
}
2075
2057
2076
.searchheader {
2058
.searchheader {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-12 / +9 lines)
Lines 130-158 Link Here
130
                AutomaticLinker();
130
                AutomaticLinker();
131
            });
131
            });
132
132
133
            $("#saverecord").click(function(){
133
            $("#saverecord").click(function(e){
134
                $(".btn-group").removeClass("open");
134
                e.preventDefault();
135
                onOption();
135
                onOption();
136
                return false;
137
            });
136
            });
138
137
139
            $("#saveandview").click(function(){
138
            $("#saveandview").click(function(e){
140
                $(".btn-group").removeClass("open");
139
                e.preventDefault();
141
                redirect("view");
140
                redirect("view");
142
                return false;
143
            });
141
            });
144
142
145
            $("#saveanditems").click(function(){
143
            $("#saveanditems").click(function(e){
146
                $(".btn-group").removeClass("open");
144
                e.preventDefault();
147
                redirect("items");
145
                redirect("items");
148
                return false;
149
            });
146
            });
150
            $("#saveandcontinue").click(function(){
147
151
                $(".btn-group").removeClass("open");
148
            $("#saveandcontinue").click(function(e){
149
                e.preventDefault();
152
                var tab = $("#addbibliotabs div.active:first").attr('id');
150
                var tab = $("#addbibliotabs div.active:first").attr('id');
153
                $("#current_tab").val(tab);
151
                $("#current_tab").val(tab);
154
                redirect("just_save", tab);
152
                redirect("just_save", tab);
155
                return false;
156
            });
153
            });
157
154
158
            $( '#toggleEditor' ).change( function() {
155
            $( '#toggleEditor' ).change( function() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +1 lines)
Lines 242-248 Link Here
242
                var patron_search_selections = JSON.parse(localStorage.getItem("patron_search_selections")) || [];
242
                var patron_search_selections = JSON.parse(localStorage.getItem("patron_search_selections")) || [];
243
                if (patron_search_selections.length == 0) {
243
                if (patron_search_selections.length == 0) {
244
                    alert(_("You have not selected any patrons to add to a list!"));
244
                    alert(_("You have not selected any patrons to add to a list!"));
245
                    $(".btn-group").removeClass("open"); /* Close button menu */
245
                    $(".dropdown-menu").removeClass("show");
246
                    return false;
246
                    return false;
247
                }
247
                }
248
248
Lines 253-259 Link Here
253
                    $("#new-patron-list").modal("show");
253
                    $("#new-patron-list").modal("show");
254
                } else {
254
                } else {
255
                    /* Ajax submit the patrons to list */
255
                    /* Ajax submit the patrons to list */
256
257
                    patronListAdd();
256
                    patronListAdd();
258
                }
257
                }
259
            });
258
            });
(-)a/koha-tmpl/intranet-tmpl/prog/js/catalog.js (-5 lines)
Lines 171-181 $(document).ready(function () { Link Here
171
        );
171
        );
172
    });
172
    });
173
173
174
    $("#addtoshelf").click(function () {
175
        addToShelf();
176
        $(".btn-group").removeClass("open");
177
        return false;
178
    });
179
    $("#export").remove(); // Hide embedded export form if JS menus available
174
    $("#export").remove(); // Hide embedded export form if JS menus available
180
175
181
    $(".addtolist").on("click", function (e) {
176
    $(".addtolist").on("click", function (e) {
(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (-15 / +10 lines)
Lines 23-40 $(document).ready(function () { Link Here
23
        });
23
        });
24
    }
24
    }
25
    if (CAN_user_borrowers_edit_borrowers) {
25
    if (CAN_user_borrowers_edit_borrowers) {
26
        $("#renewpatron").click(function () {
26
        $("#renewpatron").click(function (e) {
27
            e.preventDefault();
27
            confirm_reregistration();
28
            confirm_reregistration();
28
            $(".btn-group").removeClass("open");
29
            return false;
30
        });
29
        });
30
31
        $("#updatechild").click(function (e) {
31
        $("#updatechild").click(function (e) {
32
            e.preventDefault();
32
            if ($(this).data("toggle") == "tooltip") {
33
            if ($(this).data("toggle") == "tooltip") {
33
                // Disabled menu option has tooltip attribute
34
                // Disabled menu option has tooltip attribute
34
                e.preventDefault();
35
            } else {
35
            } else {
36
                update_child();
36
                update_child();
37
                $(".btn-group").removeClass("open");
38
            }
37
            }
39
        });
38
        });
40
    }
39
    }
Lines 47-67 $(document).ready(function () { Link Here
47
        );
46
        );
48
    });
47
    });
49
48
50
    $("#exportcheckins").click(function () {
49
    $("#exportcheckins").click(function (e) {
50
        e.preventDefault();
51
        export_barcodes();
51
        export_barcodes();
52
        $(".btn-group").removeClass("open");
53
        return false;
54
    });
52
    });
55
    $("#print_overdues").click(function () {
53
    $("#print_overdues").click(function (e) {
54
        e.preventDefault();
56
        window.open(
55
        window.open(
57
            "/cgi-bin/koha/members/print_overdues.pl?borrowernumber=" +
56
            "/cgi-bin/koha/members/print_overdues.pl?borrowernumber=" +
58
                borrowernumber,
57
                borrowernumber,
59
            "printwindow"
58
            "printwindow"
60
        );
59
        );
61
        $(".btn-group").removeClass("open");
62
        return false;
63
    });
60
    });
64
    $(".printslip").click(function () {
61
    $(".printslip").click(function (e) {
62
        e.preventDefault();
65
        let slip_code = $(this).data("code");
63
        let slip_code = $(this).data("code");
66
        let clear_screen = $(this).data("clear");
64
        let clear_screen = $(this).data("clear");
67
        if (slip_code == "printsummary") {
65
        if (slip_code == "printsummary") {
Lines 81-89 $(document).ready(function () { Link Here
81
        }
79
        }
82
        if (clear_screen) {
80
        if (clear_screen) {
83
            window.location.replace("/cgi-bin/koha/circ/circulation.pl");
81
            window.location.replace("/cgi-bin/koha/circ/circulation.pl");
84
        } else {
85
            $(".btn-group").removeClass("open");
86
            return false;
87
        }
82
        }
88
    });
83
    });
89
    $("#searchtohold").click(function () {
84
    $("#searchtohold").click(function () {
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js (-13 / +8 lines)
Lines 199-228 $(document).ready(function () { Link Here
199
        return false;
199
        return false;
200
    });
200
    });
201
201
202
    $("#searchheader").on("click", ".placehold", function () {
202
    $("#searchheader").on("click", ".placehold", function (e) {
203
        e.preventDefault();
203
        $("#holdFor").val("");
204
        $("#holdFor").val("");
204
        $("#holdForClub").val("");
205
        $("#holdForClub").val("");
205
        placeHold();
206
        placeHold();
206
        $(".btn-group").removeClass("open");
207
        return false;
208
    });
207
    });
209
208
210
    $(".placeholdfor").click(function () {
209
    $(".placeholdfor").click(function (e) {
210
        e.preventDefault();
211
        holdForPatron();
211
        holdForPatron();
212
        $(".btn-group").removeClass("open");
213
        return false;
214
    });
212
    });
215
213
216
    $(".placeholdforclub").click(function () {
214
    $(".placeholdforclub").click(function (e) {
215
        e.preventDefault();
217
        holdForClub();
216
        holdForClub();
218
        $(".btn-group").removeClass("open");
219
        return false;
220
    });
217
    });
221
218
222
    $("#forgetholdfor, #forgetholdforclub").click(function () {
219
    $("#forgetholdfor, #forgetholdforclub").click(function (e) {
220
        e.preventDefault();
223
        forgetPatronAndClub();
221
        forgetPatronAndClub();
224
        $(".btn-group").removeClass("open");
225
        return false;
226
    });
222
    });
227
223
228
    $(".selection").show();
224
    $(".selection").show();
229
- 

Return to bug 39323