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

(-)a/koha-tmpl/opac-tmpl/bootstrap/js/global.js (-1 / +16 lines)
Lines 265-270 function setPlaceholder() { Link Here
265
    $("#translControl1").attr("placeholder", search_placeholder);
265
    $("#translControl1").attr("placeholder", search_placeholder);
266
}
266
}
267
267
268
function setAdvancedPlaceholder(selectEl) {
269
    var $select = $(selectEl);
270
    var $row = $select.closest(".search-term-row");
271
    var $input = $row.find("input[name='q']");
272
    var ph = $select.find("option:selected").data("placeholder");
273
    $input.attr("placeholder", ph || _("Enter search terms"));
274
}
275
276
$(".advanced-search-terms select[name='idx']").each(function () {
277
    setAdvancedPlaceholder(this);
278
});
279
280
$(".advanced-search-terms").on("change", "select[name='idx']", function () {
281
    setAdvancedPlaceholder(this);
282
});
283
268
$(document).ready(function () {
284
$(document).ready(function () {
269
    //check if sticky element is stuck, if so add floating class
285
    //check if sticky element is stuck, if so add floating class
270
    if ($(".sticky").length) {
286
    if ($(".sticky").length) {
271
- 

Return to bug 38643