[BUGFIX] Create instance of ToggleSearchToolbox 41/56141/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 14 Mar 2018 07:11:17 +0000 (08:11 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 14 Mar 2018 07:58:17 +0000 (08:58 +0100)
Resolves: #84251
Releases: master
Change-Id: Ib4f62be18d8175f03fe0456f61a7eed56a3b877a
Reviewed-on: https://review.typo3.org/56141
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Private/TypeScript/ToggleSearchToolbox.ts
typo3/sysext/backend/Resources/Public/JavaScript/ToggleSearchToolbox.js

index 8bb98d2..06adb67 100644 (file)
@@ -10,4 +10,4 @@
  *
  * The TYPO3 project - inspiring people to share!
  */
-define(["require","exports","jquery","./DocumentHeader","TYPO3/CMS/Backend/jquery.clearable"],function(e,i,o,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(){function e(){var e=this;o(function(){e.initialize()})}e.prototype.initialize=function(){var e=this,i=o("#db_list-searchbox-toolbar");o(".t3js-toggle-search-toolbox").on("click",function(){i.toggle(),t.reposition(),i.is(":visible")&&o("#search_field").focus()});var n=o("#search_field"),r=""!==n.val();n.clearable({onClear:function(){r&&o(e).closest("form").submit()}})}}()});
\ No newline at end of file
+define(["require","exports","jquery","./DocumentHeader","TYPO3/CMS/Backend/jquery.clearable"],function(e,i,t,o){"use strict";return new(function(){function e(){var e=this;t(function(){e.initialize()})}return e.prototype.initialize=function(){var e=this,i=t("#db_list-searchbox-toolbar");t(".t3js-toggle-search-toolbox").on("click",function(){i.toggle(),o.reposition(),i.is(":visible")&&t("#search_field").focus()});var n=t("#search_field"),r=""!==n.val();n.clearable({onClear:function(){r&&t(e).closest("form").submit()}})},e}())});
\ No newline at end of file