Skip to content

Commit

Permalink
[BUGFIX] Add requireJs for Inline JavaScript in file replace view
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeoBlack authored and wouter90 committed Mar 8, 2019
1 parent 7947696 commit 53a23e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ <h1><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf
</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" />
Expand Down

0 comments on commit 53a23e6

Please sign in to comment.