[BUGFIX] Add requireJs for Inline JavaScript in file replace view
[Packages/TYPO3.CMS.git] / 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" />