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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-1 / +11 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 334-339 Link Here
334
                browser.show_back_link();
334
                browser.show_back_link();
335
            [% END %]
335
            [% END %]
336
336
337
            $("#adv-search-form").on("submit", function(){
338
                var idx = $("select[name='idx']");
339
                var i = 0;
340
                $("input[name='q']").each(function(){
341
                    if( !$(this).val().length ) {
342
                        $(idx[i]).val("");
343
                    }
344
                    i++;
345
                });
346
            });
337
        });
347
        });
338
    </script>
348
    </script>
339
[% END %]
349
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-1 / +8 lines)
Lines 490-495 $(document).ready(function() { Link Here
490
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
490
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
491
        jQuery.removeCookie("num_paragraph", { path: '/'});
491
        jQuery.removeCookie("num_paragraph", { path: '/'});
492
        [% END %]
492
        [% END %]
493
494
        var i = 0;
495
        $("input[name='q']").each(function(){
496
            if( !$(this).val().length ) {
497
                $("#search-field_"+i).val("");
498
            }
499
            i++;
500
        });
493
    });
501
    });
494
502
495
});
503
});
496
- 

Return to bug 7607