Skip to content

Commit

Permalink
fixed bootstrap file chooser gui element
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Frank Hoffmann authored and Dr. Frank Hoffmann committed Jun 21, 2018
1 parent 62966ad commit 3994f83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/OFS/dtml/documentEdit.dtml
Expand Up @@ -42,7 +42,8 @@
<form action="manage_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">
<div class="input-group" title="Select Local File for Uploading">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="file-data" value="">
<input type="file" name="file" class="custom-file-input" id="file-data" value=""
onchange="$('.custom-file label').html($(this).val().replace(/^.*(\\|\/|\:)/, ''));" />
<label class="custom-file-label" for="file-data">Choose file</label>
</div>
<div class="input-group-append">
Expand Down
5 changes: 3 additions & 2 deletions src/OFS/dtml/fileEdit.dtml
Expand Up @@ -67,10 +67,11 @@
</form>

<dtml-unless wl_isLocked>
<form X-action="<dtml-var "REQUEST.URL1" html_quote>" action="manage_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">
<form action="<dtml-var "REQUEST.URL1" html_quote>" action="manage_upload" method="post" enctype="multipart/form-data" class="zmi-upload mt-4">
<div class="input-group" title="Select Local File for Uploading">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="file-data" value="">
<input type="file" name="file" class="custom-file-input" id="file-data" value=""
onchange="$('.custom-file label').html($(this).val().replace(/^.*(\\|\/|\:)/, ''));" />
<label class="custom-file-label" for="file-data">Choose file</label>
</div>
<div class="input-group-append">
Expand Down
4 changes: 3 additions & 1 deletion src/OFS/dtml/imageEdit.dtml
Expand Up @@ -64,7 +64,9 @@
<form action="manage_upload" method="post" enctype="multipart/form-data" class="zmi-image zmi-upload mt-4">
<div class="input-group" title="Select Local File for Uploading">
<div class="custom-file">
<input type="file" name="file" class="custom-file-input" id="file-data" value="">
<input type="file" name="file" class="custom-file-input" id="file-data" value=""
id="file-data"
onchange="$('.custom-file label').html($(this).val().replace(/^.*(\\|\/|\:)/, ''));" />
<label class="custom-file-label" for="file-data">Choose file</label>
</div>
<div class="input-group-append">
Expand Down

0 comments on commit 3994f83

Please sign in to comment.