Bug 33484: Early return in add_filters if node does not exist
Maybe we could even return early from kohaTable? Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
fa8a9bfec6
commit
fe31fd7288
|
|
@ -841,6 +841,8 @@ function _dt_on_visibility(add_filters, table_node, table_dt){
|
|||
|
||||
function _dt_add_filters(table_node, table_dt, filters_options = {}) {
|
||||
|
||||
if (!table_node.length) return;
|
||||
|
||||
$(table_node).find('thead tr:eq(1)').remove(); // Remove if one exists already
|
||||
$(table_node).find('thead tr').clone().appendTo( $(table_node).find('thead') );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue