Merge "Judge if horizon.datatables.qs is undefined"

This commit is contained in:
Zuul 2019-05-20 04:56:59 +00:00 committed by Gerrit Code Review
commit 489e60ff6b
1 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,9 @@ horizon.datatables.update_header_checkbox = function(table) {
}; };
horizon.datatables.set_table_query_filter = function (parent) { horizon.datatables.set_table_query_filter = function (parent) {
horizon.datatables.qs = {}; if (typeof horizon.datatables.qs === "undefined"){
horizon.datatables.qs = {};
}
$(parent).find('table').each(function (index, elm) { $(parent).find('table').each(function (index, elm) {
var input = $($(elm).find('div.table_search.client input')), var input = $($(elm).find('div.table_search.client input')),
table_selector; table_selector;