FSN#38717 bestandsnamen worden nu weergegeven alvorens te worden upgeload
svn path=/Website/trunk/; revision=32214
This commit is contained in:
@@ -213,6 +213,19 @@ if (fso.FolderExists(params.AttachPath))
|
||||
}
|
||||
}
|
||||
|
||||
function displayFilename(fileInput)
|
||||
{
|
||||
var fileString = "";
|
||||
var files = fileInput.files;
|
||||
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
if (i != 0) fileString += "<br>";
|
||||
fileString += files[i].name
|
||||
}
|
||||
document.getElementById("displayFilename").innerHTML = fileString;
|
||||
FcltMgr.resized();
|
||||
}
|
||||
|
||||
function uploadDone(uploaded_files)
|
||||
{
|
||||
for (i=0; i<uploaded_files.length; i++)
|
||||
@@ -322,12 +335,13 @@ if (fso.FolderExists(params.AttachPath))
|
||||
var buttons = [];
|
||||
if (!pReado && (pMulti || params.multi || fileArray.length == 0)) // Uploadknop erbij
|
||||
{
|
||||
buttons.push({ title: L("lcl_do_upload_image"), action: "doSubmitUpload()", singlepress: true, id: "btn_upload_submit"});
|
||||
buttons.push({ title: L("lcl_do_upload_file"), action: "doSubmitUpload()", singlepress: true, id: "btn_upload_submit"});
|
||||
var isMultiple = (((pMulti || params.multi) && !params.forcesingle) ? "multiple" : "");
|
||||
%> <tr><td colspan="4">
|
||||
<label for="file-upload" class="uploadbutton"><i class="fa fa-upload fa-lg"> </i><%=L("lcl_upload_file")%>:</label>
|
||||
<label for="file-upload" class="uploadbutton"><i class="fa fa-upload fa-lg"> </i><%=L("lcl_select_file")%>:</label>
|
||||
<div id="displayFilename" style="display: block"></div>
|
||||
<% if (params.extFilter) { Response.Write("(" + safe.html(params.extFilter) + ")"); } %>
|
||||
<input id="file-upload" type="file" <%=isMultiple%> name="imgfile" style="width: 95%" onchange="iface.button[this.value?'enable':'disable']('btn_upload_submit')">
|
||||
<input id="file-upload" type="file" <%=isMultiple%> name="imgfile" style="width: 95%" onchange="displayFilename(this);iface.button[this.value?'enable':'disable']('btn_upload_submit')">
|
||||
<div id="uploading" style="display:none">
|
||||
Please wait...
|
||||
</div>
|
||||
@@ -345,7 +359,7 @@ if (fso.FolderExists(params.AttachPath))
|
||||
<% BLOCK_END();
|
||||
// buttons.push({id: "addButton", title: "Mail naar", action: "mailFile()"});
|
||||
|
||||
buttons.push({id: "closeButton", title: L("lcl_close_window"), action: "Sluiten()"});
|
||||
buttons.push({id: "closeButton", title: L("lcl_window_done"), action: "Sluiten()"});
|
||||
CreateButtons(buttons);
|
||||
IFACE.FORM_END();
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user