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 <andrew@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
401987bdad
commit
0e16ad052b
1 changed files with 0 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue