Project

General

Profile

Bug #87795 ยป typo3_file_replacement_jquery_error.diff

Michael Straschek, 2019-02-26 15:32

View differences:

sysext/backend/Resources/Private/Templates/File/ReplaceFile.patched.html 2019-02-26 15:18:32.000000000 +0100
<div class="form-group">
<label for="file_replace"><f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:file_replace.php.selectfile" /></label>
<div class="input-group col-xs-6">
<div class="input-group col-xs-6" style="display: none;">
<input type="text" name="fakefile" id="fakefile" class="form-control input-xlarge" readonly>
<a class="input-group-addon btn btn-primary" onclick="$('#file_replace').click();">
<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:file_replace.php.browse" />
</a>
</div>
<input class="form-control" type="file" id="file_replace" name="replace_1" style="visibility: hidden;" />
<input class="form-control" type="file" id="file_replace" name="replace_1" style="" />
</div>
<script>
$('#file_replace').change(function() {
$('#fakefile').val($(this).val());
});
// $('#file_replace').change(function() {
// $('#fakefile').val($(this).val());
// });
</script>
<input type="hidden" name="overwriteExistingFiles" value="replace" />
    (1-1/1)