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

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-2 / +2 lines)
Lines 254-266 function setPlaceholder(){ Link Here
254
    let clearButton = $('<span class="clear-search"><i class="fa-solid fa-square-xmark"></i></span>');
254
    let clearButton = $('<span class="clear-search"><i class="fa-solid fa-square-xmark"></i></span>');
255
255
256
    $("#translControl1").attr("placeholder", search_placeholder).after(clearButton);
256
    $("#translControl1").attr("placeholder", search_placeholder).after(clearButton);
257
    clearButton.hide();
257
258
258
    clearButton.click(function() {
259
    clearButton.click(function() {
259
        $("#translControl1").val('').focus();
260
        $("#translControl1").val('').focus();
260
        $(this).hide();
261
        $(this).hide();
261
    });
262
    });
262
263
263
    $("#translControl1").on('input', function() {
264
    $("#translControl1").on('input focus', function() {
264
        if ($(this).val() !== '') {
265
        if ($(this).val() !== '') {
265
            clearButton.show();
266
            clearButton.show();
266
        } else {
267
        } else {
267
- 

Return to bug 33668