MNNL#55317 Dialoogscherm bij uploaden werkt niet goed
svn path=/Website/trunk/; revision=39813
This commit is contained in:
@@ -319,6 +319,7 @@ if (fso.FolderExists(params.AttachPath))
|
||||
},
|
||||
function()
|
||||
{ // confirm=OK
|
||||
iface.button.disable("closeButton");
|
||||
$("#uploading").show();
|
||||
FcltMgr.resized();
|
||||
|
||||
@@ -379,16 +380,23 @@ if (fso.FolderExists(params.AttachPath))
|
||||
|
||||
function Sluiten()
|
||||
{
|
||||
var unUploadedFiles = (looseFiles.length ? looseFiles.length : (document.forms.u2.imgfile ? document.forms.u2.imgfile.files.length : 0));
|
||||
FcltMgr.confirm(L("lcl_shared_unfinished_uploads"),
|
||||
{ autoconfirm: !unUploadedFiles,
|
||||
fncancel: function() { /* geen actie bij confirm=cancel */ }
|
||||
},
|
||||
function()
|
||||
{
|
||||
window.return_data.org_data=FcltMgr.dialogArguments();
|
||||
FcltMgr.closeDetail(window, return_data);
|
||||
});
|
||||
if ($("#closeButton").hasClass("btn_disabled"))
|
||||
{
|
||||
FcltMgr.alert(L("lcl_busy_upload_file"));
|
||||
}
|
||||
else
|
||||
{
|
||||
var unUploadedFiles = (looseFiles.length ? looseFiles.length : (document.forms.u2.imgfile ? document.forms.u2.imgfile.files.length : 0));
|
||||
FcltMgr.confirm(L("lcl_shared_unfinished_uploads"),
|
||||
{ autoconfirm: !unUploadedFiles,
|
||||
fncancel: function() { /* geen actie bij confirm=cancel */ }
|
||||
},
|
||||
function()
|
||||
{
|
||||
window.return_data.org_data=FcltMgr.dialogArguments();
|
||||
FcltMgr.closeDetail(window, return_data);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -489,8 +497,9 @@ if (fso.FolderExists(params.AttachPath))
|
||||
window.return_data = { cnt: <%=fileArray.length%>, fileName: '<%=safe.jsstring(fileArray.length > 0? fileArray[0].vFileName : "")%>'};
|
||||
FcltMgr.setCloseParams(window.return_data); // Zelfs als je kruisje gebruikt
|
||||
$(function ()
|
||||
{
|
||||
iface.button.disable("btn_upload_submit")}
|
||||
{
|
||||
iface.button.disable("btn_upload_submit");
|
||||
}
|
||||
);
|
||||
</script>
|
||||
<% BLOCK_END();
|
||||
|
||||
Reference in New Issue
Block a user