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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-7 / +7 lines)
Lines 457-471 Link Here
457
                        }
457
                        }
458
                    }
458
                    }
459
                });
459
                });
460
                $('#itemsearchform').submit(function() {
460
            });
461
                  var searchform = $(this);
461
462
                  var format = searchform.find('input[name="format"]:checked').val();
462
            $('#itemsearchform').submit(function() {
463
                  if (format == 'html') {
463
                var searchform = $(this);
464
                var format = searchform.find('input[name="format"]:checked').val();
465
                if (format == 'html') {
464
                    submitForm(searchform);
466
                    submitForm(searchform);
465
                    $("#item-search-block").hide();
467
                    $("#item-search-block").hide();
466
                    return false;
468
                    return false;
467
                  }
469
                }
468
                });
469
            });
470
            });
470
        });
471
        });
471
    </script>
472
    </script>
472
- 

Return to bug 23575