summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-09-29 12:00:02 +0200
committerYorhel <git@yorhel.nl>2018-09-29 12:00:15 +0200
commit706f447961d18c36ffdc6be34a6eae40acd01574 (patch)
tree24487342f23fdb01a2c7e4192a05465a2bf19082 /data
parent7ca7bb13c3bd79a82b73bdd631399e25fdf6fe81 (diff)
Add default spoiler level to traits and use it on character edit
https://vndb.org/t11296
Diffstat (limited to 'data')
-rw-r--r--data/config_example.pl1
-rw-r--r--data/js/chartraits.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/data/config_example.pl b/data/config_example.pl
index 4d0988c6..aab37d10 100644
--- a/data/config_example.pl
+++ b/data/config_example.pl
@@ -11,6 +11,7 @@ package VNDB;
log_queries => 0,
debug => 1,
cookie_defaults => { domain => 'localhost', path => '/' },
+ mail_sendmail => 'log',
);
%S = (
diff --git a/data/js/chartraits.js b/data/js/chartraits.js
index eece14dc..05f6e53d 100644
--- a/data/js/chartraits.js
+++ b/data/js/chartraits.js
@@ -70,7 +70,7 @@ function ctrFormAdd(item) {
else if(item.getAttribute('meta') == 'yes')
alert('Meta traits can\'t be used here.');
else
- ctrAdd(item, 0);
+ ctrAdd(item, Math.floor(item.getAttribute('defaultspoil')));
return '';
}