[BUGFIX] Add requireJs for Inline JavaScript in file replace view 51/59851/3
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 4 Mar 2019 20:46:02 +0000 (21:46 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 8 Mar 2019 21:54:35 +0000 (22:54 +0100)
Resolves: #87795
Releases: master, 9.5
Change-Id: I6455729515757580b6de7704d0986414ddec0493
Reviewed-on: https://review.typo3.org/c/59851
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Private/Templates/File/ReplaceFile.html

index 5640c23..71cfe7d 100644 (file)
     </div>
 
     <script>
+      require(['jquery'], function($) {
         $('#file_replace').change(function() {
-            $('#fakefile').val($(this).val());
+          $('#fakefile').val($(this).val());
         });
+      });
     </script>
 
     <input type="hidden" name="overwriteExistingFiles" value="replace" />