Added UI confirmation of file count uploaded

This commit is contained in:
Rick Falkvinge
2013-09-18 06:47:31 +00:00
parent f5aff8c8ad
commit d4ef34080a
4 changed files with 11 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -37,7 +37,10 @@
dataType: 'json',
done: function (e, data) {
$('#DivProgressUpload').progressbar({ value: 100 });
$('#DivProgressUpload').fadeOut();
$('#DivProgressUpload').fadeOut('400', function () { $('#DivUploadCount').fadeIn(); });
$.each(data.files, function(index, file) {
$('#DivUploadCount').append('<img src="/Images/Icons/iconshock-invoice-greentick-32px.png" />');
});
/*
$.each(data.result.files, function (index, file) {
$('<p/>').text(file.name).appendTo('#files');
@@ -51,6 +54,7 @@
}, { queue: false });
},
add: function (e, data) {
$('#DivUploadCount').css('display', 'none');
$('#DivProgressUpload').fadeIn();
data.submit();
}
@@ -127,7 +131,7 @@
<!-- file upload begins here -->
<div style="height:36px;float:left"><input id="ButtonUploadVisible" type="button" style="width:36px !important; background-image:url('/Images/Icons/iconshock-diskette-upload-32px.png');background-repeat:no-repeat; background-position:top left"/><input id="ButtonUploadHidden" type="file" name="files[]" multiple style="display:none"></div><div style="height:36px;width:270px;margin-right:10px;float:right;margin-top:8px;border:none"><div id="DivProgressUpload" style="width:100%;display:none"></div></div>&nbsp;<br/>
<div style="height:36px;float:left"><input id="ButtonUploadVisible" type="button" style="width:36px !important; background-image:url('/Images/Icons/iconshock-diskette-upload-32px.png');background-repeat:no-repeat; background-position:top left"/><input id="ButtonUploadHidden" type="file" name="files[]" multiple style="display:none" /></div><div style="height:36px;width:270px;margin-right:10px;float:right;border:none"><div id="DivUploadCount" style="display:none;overflow:hidden"></div><div id="DivProgressUpload" style="width:100%;margin-top:8px;display:none"></div></div>&nbsp;<br/>
<!-- file upload ends -->
+5 -1
View File
@@ -11,7 +11,7 @@
/* CLEAR MARGINS */
/* CLEAR MARGINS AND MORE */
html, body, form, h1, h2, h3, h4, p, input, div, span, ol, ul, li
{
@@ -19,6 +19,10 @@ html, body, form, h1, h2, h3, h4, p, input, div, span, ol, ul, li
padding: 0;
}
:focus {
outline: none; /* clear Chromium's outline */
}
/* BASE FONT */