diff --git a/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php b/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php index fb8aacf14923b5ac1084a5d247c90ede3f3ebe17..aee0c42647b2e23d20dc4ce7dbb6e1f019a776cd 100644 --- a/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php +++ b/typo3/sysext/recycler/Classes/Controller/RecyclerAjaxController.php @@ -87,7 +87,7 @@ class RecyclerAjaxController { $deletedRowsArray = $model->getDeletedRows(); $model = GeneralUtility::makeInstance(DeletedRecords::class); - $totalDeleted = $model->getTotalCount($this->conf['startUid'], $this->conf['table'], $this->conf['depth'], $this->conf['filter']); + $totalDeleted = $model->getTotalCount($this->conf['startUid'], $this->conf['table'], $this->conf['depth'], $this->conf['filterTxt']); /* @var $controller DeletedRecordsController */ $controller = GeneralUtility::makeInstance(DeletedRecordsController::class); diff --git a/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js b/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js index c2fb5601b4b7ddf2705d817ccfd84c2503a46e0b..742ac6cc2302f426535de6ffe4cb8593257fb3bb 100644 --- a/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js +++ b/typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js @@ -14,7 +14,7 @@ /** * RequireJS module for Recycler */ -define(['jquery', 'nprogress'], function($, NProgress) { +define(['jquery', 'nprogress', 'jquery/jquery.clearable'], function($, NProgress) { var Recycler = { identifiers: { searchForm: '#recycler-form', @@ -79,7 +79,14 @@ define(['jquery', 'nprogress'], function($, NProgress) { Recycler.elements.$searchSubmitBtn.addClass('disabled'); Recycler.loadDeletedElements(); } - }); + }).clearable( + { + onClear: function() { + Recycler.elements.$searchSubmitBtn.addClass('disabled'); + Recycler.loadDeletedElements(); + } + } + ); // changing "depth" Recycler.elements.$depthSelector.on('change', function() {