1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 23:50:11 +01:00

Fallback for browsers that disables javascript

This commit is contained in:
marktaiwan 2015-03-18 18:44:47 +08:00
parent ca7207c5dd
commit 6e35f12e3a
3 changed files with 3 additions and 5 deletions

View File

@ -140,7 +140,8 @@ var dropHandlers = {
}
};
$('.dropzone').css('user-select', 'none') // let jquery add browser specific prefix
$('#upload input[type=file]').hide(); // hide the original file selector
$('.dropzone-wrap').css('user-select', 'none').show(); // let jquery add browser specific prefix
// attach handlers
$(document).on(dropHandlers, '.dropzone');

View File

@ -1182,9 +1182,6 @@ div.mix {
width: 50px;
}
input#upload_file {
display: none;
}
/* File selector */
.dropzone {
color: #000;

View File

@ -91,7 +91,7 @@
</th>
<td>
<input type="file" name="file" id="upload_file">
<div class="dropzone-wrap">
<div class="dropzone-wrap" style="display: none;">
<div class="dropzone">
<div class="file-hint">Select/drop/paste files here</div>
<div class="file-thumbs"></div>