forked from leftypol/leftypol
Fix issue #57
This commit is contained in:
parent
a9765f6c4a
commit
91570ef083
2 changed files with 9 additions and 4 deletions
|
@ -20,11 +20,16 @@ $(function(){
|
|||
|
||||
var disable_all = function() {
|
||||
$("#upload").hide();
|
||||
$("#upload_file").hide();
|
||||
$("[id^=upload_file]").hide();
|
||||
$(".file_separator").hide();
|
||||
$("#upload_url").hide();
|
||||
$("#upload_embed").hide();
|
||||
$(".add_image").hide();
|
||||
|
||||
$('[id^=upload_file]').each(function(i, v) {
|
||||
$(v).val('');
|
||||
});
|
||||
|
||||
if (enabled_oekaki) {
|
||||
if (window.oekaki.initialized) {
|
||||
window.oekaki.deinit();
|
||||
|
@ -35,7 +40,8 @@ $(function(){
|
|||
enable_file = function() {
|
||||
disable_all();
|
||||
$("#upload").show();
|
||||
$("#upload_file").show();
|
||||
$(".file_separator").show();
|
||||
$("[id^=upload_file]").show();
|
||||
$(".add_image").show();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue