diff --git a/modules/backend/widgets/Table.php b/modules/backend/widgets/Table.php index 669d7327e..9de40a3c6 100644 --- a/modules/backend/widgets/Table.php +++ b/modules/backend/widgets/Table.php @@ -121,7 +121,7 @@ class Table extends WidgetBase $this->vars['recordsPerPage'] = $this->getConfig('recordsPerPage', false) ?: 'false'; $this->vars['postbackHandlerName'] = $this->getConfig('postbackHandlerName', 'onSave'); - $this->vars['searching'] = $this->getConfig('searching', true); + $this->vars['searching'] = $this->getConfig('searching', false); $this->vars['adding'] = $this->getConfig('adding', true); $this->vars['deleting'] = $this->getConfig('deleting', true); $this->vars['toolbar'] = $this->getConfig('toolbar', true); diff --git a/modules/backend/widgets/table/assets/js/table.js b/modules/backend/widgets/table/assets/js/table.js index d284987d9..2e89e0d75 100644 --- a/modules/backend/widgets/table/assets/js/table.js +++ b/modules/backend/widgets/table/assets/js/table.js @@ -1133,7 +1133,7 @@ if (typeof option == 'string') result = data[option].apply(data, args) if (typeof result != 'undefined') return false }) - + return result ? result : this }