From f256f13bd07de46f3595fc7d42e76a015ddd9134 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Jan 2021 10:40:12 +0100 Subject: [PATCH] Bug 27251: Don't hide the table on delete if empty If we filtered the result, delete the only row displayed then the table was hidden. This is a nice behaviour, especially if there was no filter. However we must show it again if the filters are removed. I am suggesting to simply to not hide the table and avoid adding more JS code to deal with this very specific use case. Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt | 3 --- 1 file changed, 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index c42839bfd4..da6b6b6a50 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -215,9 +215,6 @@ }).success(function() { $("#delete_confirm_modal").modal('hide'); quotes.api().ajax.reload(function (data) { - if (data.recordsTotal == 0) { - $("#quotes").hide(); - } $("#quote_action_result_dialog").hide(); $("#quote_delete_success").html(_("Quote #%s deleted successfully.").format(quote_id)).show(); }); -- 2.11.0