Fixing cross browser issues when importing media from local computer

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-06-26 12:43:14 -07:00
parent 1fa29f9cfe
commit 88923b49d2
2 changed files with 19 additions and 4 deletions

View File

@@ -26,17 +26,23 @@
bottom: 0;
padding: 0;
margin: 10px 15px 15px 10px;
}
#fileupload input{
position: absolute;
opacity: 0;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 0;
/*bottom: 0;*/
width: 0;
height: 0;
cursor: none;
z-index: 1000;
}
#fileupload ul {
width: 100%;
z-index: 2000;
}
#clientstorage-main li {

View File

@@ -73,6 +73,15 @@
var viewModel = new clientStorageViewModel();
ko.applyBindings(viewModel);
$('#fileupload').click(function() {
console.log('click');
$('#fileupload > input').trigger('click');
});
$('#fileupload > input').click(function(event) {
event.stopPropagation();
});
// Add drag-n-drop HTML5 support
$('#fileupload').fileupload({
url: '@Url.Action("Upload", "ClientStorage")',