mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing cross browser issues when importing media from local computer
--HG-- branch : 1.x
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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")',
|
||||
|
Reference in New Issue
Block a user