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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-1 / +12 lines)
Lines 34-40 Link Here
34
    <div class="row">
34
    <div class="row">
35
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
35
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
36
36
37
<form action="search.pl" method="get">
37
<form id="adv-search-form" action="search.pl" method="get">
38
<div id="advanced-search">
38
<div id="advanced-search">
39
<input type="hidden" name="advsearch" value="1"/>
39
<input type="hidden" name="advsearch" value="1"/>
40
<h1>Advanced search</h1>
40
<h1>Advanced search</h1>
Lines 324-329 Link Here
324
                    document.getElementById("categoryloop").disabled=false;
324
                    document.getElementById("categoryloop").disabled=false;
325
                }
325
                }
326
            });
326
            });
327
328
            $("#adv-search-form").on("submit", function(){
329
                var idx = $("select[name='idx']");
330
                var i = 0;
331
                $("input[name='q']").each(function(){
332
                    if( !$(this).val().length ) {
333
                        $(idx[i]).val("");
334
                    }
335
                    i++;
336
                });
337
            });
327
        });
338
        });
328
    </script>
339
    </script>
329
[% END %]
340
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-1 / +8 lines)
Lines 465-470 $(document).ready(function() { Link Here
465
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
465
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
466
        jQuery.removeCookie("num_paragraph", { path: '/'});
466
        jQuery.removeCookie("num_paragraph", { path: '/'});
467
        [% END %]
467
        [% END %]
468
469
        var i = 0;
470
        $("input[name='q']").each(function(){
471
            if( !$(this).val().length ) {
472
                $("#search-field_"+i).val("");
473
            }
474
            i++;
475
        });
468
    });
476
    });
469
477
470
});
478
});
471
- 

Return to bug 7607