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 344-349 Link Here
344
                browser.show_back_link();
344
                browser.show_back_link();
345
            [% END %]
345
            [% END %]
346
346
347
            $("#adv-search-form").on("submit", function(){
348
                var idx = $("select[name='idx']");
349
                var i = 0;
350
                $("input[name='q']").each(function(){
351
                    if( !$(this).val().length ) {
352
                        $(idx[i]).val("");
353
                    }
354
                    i++;
355
                });
356
            });
347
        });
357
        });
348
    </script>
358
    </script>
349
[% END %]
359
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-1 / +8 lines)
Lines 502-507 $(document).ready(function() { Link Here
502
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
502
        jQuery.cookie("search_path_code", 'ads',{ path: '/'});
503
        jQuery.removeCookie("num_paragraph", { path: '/'});
503
        jQuery.removeCookie("num_paragraph", { path: '/'});
504
        [% END %]
504
        [% END %]
505
506
        var i = 0;
507
        $("input[name='q']").each(function(){
508
            if( !$(this).val().length ) {
509
                $("#search-field_"+i).val("");
510
            }
511
            i++;
512
        });
505
    });
513
    });
506
514
507
});
515
});
508
- 

Return to bug 7607