mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
Fallback for browsers that disables javascript
This commit is contained in:
parent
ca7207c5dd
commit
6e35f12e3a
@ -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
|
// attach handlers
|
||||||
$(document).on(dropHandlers, '.dropzone');
|
$(document).on(dropHandlers, '.dropzone');
|
||||||
|
@ -1182,9 +1182,6 @@ div.mix {
|
|||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input#upload_file {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
/* File selector */
|
/* File selector */
|
||||||
.dropzone {
|
.dropzone {
|
||||||
color: #000;
|
color: #000;
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" name="file" id="upload_file">
|
<input type="file" name="file" id="upload_file">
|
||||||
<div class="dropzone-wrap">
|
<div class="dropzone-wrap" style="display: none;">
|
||||||
<div class="dropzone">
|
<div class="dropzone">
|
||||||
<div class="file-hint">Select/drop/paste files here</div>
|
<div class="file-hint">Select/drop/paste files here</div>
|
||||||
<div class="file-thumbs"></div>
|
<div class="file-thumbs"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user