KFNS#36330 Opmaak bijlagen modal verbeterd na toegevoegd functionaliteit van drag-n-drop en paste screenshots
svn path=/Website/trunk/; revision=37804
This commit is contained in:
@@ -177,7 +177,7 @@ if (fso.FolderExists(params.AttachPath))
|
||||
});
|
||||
}
|
||||
|
||||
// Does not work in IE 11
|
||||
// Does not work in lte IE 11
|
||||
$(document).on("paste", function (e)
|
||||
{
|
||||
var data = (e.originalEvent || e).clipboardData;
|
||||
@@ -442,9 +442,15 @@ if (fso.FolderExists(params.AttachPath))
|
||||
var isMultiple = (((pMulti || params.multi) && !params.forcesingle) ? "multiple" : "");
|
||||
%> <tr><td colspan="4">
|
||||
<div class="dragdrop">
|
||||
<i class="fa fa-sign-in fa-lg fa-rotate-90"> </i><%=(isMultiple ? L("lcl_drag_files") : L("lcl_drag_file"))%> <%=L("lcl_fac_api_of")%><br>
|
||||
<label for="file-upload" class="uploadbutton"><i class="fa fa-upload fa-lg"> </i><%=L("lcl_select_file")%></label><br>
|
||||
<i class="fa fa-clipboard"> </i><%=L("lcl_fac_api_of")%> <%=L("lcl_paste_screenshot")%>
|
||||
<i class="fa fa-sign-in fa-lg fa-rotate-90"> </i><%=(isMultiple ? L("lcl_drag_files") : L("lcl_drag_file"))%> <%=L("lcl_fac_api_of")%>
|
||||
<br><label for="file-upload" class="uploadbutton"><i class="fa fa-upload fa-lg"> </i><%=L("lcl_select_file")%></label>
|
||||
<script>
|
||||
// window.clipboardData is only supported in IE whereas our functionality to Ctrl+V a PrtScr exists only outside of IE
|
||||
if (typeof window.clipboardData == "undefined") // = Not Internet Explorer
|
||||
{
|
||||
document.write('<br><i class="fa fa-clipboard"> </i><%=L("lcl_fac_api_of")%> <%=L("lcl_paste_screenshot")%>');
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div id="displayFilename" style="display: block"></div>
|
||||
<% if (params.extFilter) { Response.Write("(" + safe.html(params.extFilter) + ")"); } %>
|
||||
|
||||
Reference in New Issue
Block a user