summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/upload-selection.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/upload-selection.js b/js/upload-selection.js
index 3bd6b9ea..ca96e513 100644
--- a/js/upload-selection.js
+++ b/js/upload-selection.js
@@ -10,6 +10,12 @@ $(function(){
$("#upload_url").hide();
$("#upload_embed").hide();
$("#oekaki").hide();
+
+ if (enabled_oekaki) {
+ if ($("#confirm_oekaki").is(':checked')) {
+ $("#confirm_oekaki").click();
+ }
+ }
};
enable_file = function() {
@@ -34,6 +40,10 @@ $(function(){
enable_oekaki = function() {
disable_all();
$("#oekaki").show();
+
+ if (!$("#confirm_oekaki").is(':checked')) {
+ $("#confirm_oekaki").click();
+ }
};
if (enabled_url || enabled_embed || enabled_oekaki) {