summaryrefslogtreecommitdiffstats
path: root/welco/static
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-02-26 11:11:32 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-02-26 11:11:32 (GMT)
commit0be0e196699997643ca38f934235682571e8cf91 (patch)
tree50977b7bd8b42d76b450c68b575ad50925efa1d8 /welco/static
parent44ad2b020c248070c548f6d2e1eb3863b8b5b41e (diff)
downloadwelco-0be0e196699997643ca38f934235682571e8cf91.zip
welco-0be0e196699997643ca38f934235682571e8cf91.tar.gz
welco-0be0e196699997643ca38f934235682571e8cf91.tar.bz2
misc: autosave mail metadata (#10098)
Diffstat (limited to 'welco/static')
-rw-r--r--welco/static/css/style.css4
-rw-r--r--welco/static/js/welco.js4
2 files changed, 8 insertions, 0 deletions
diff --git a/welco/static/css/style.css b/welco/static/css/style.css
index a439e51..d2da836 100644
--- a/welco/static/css/style.css
+++ b/welco/static/css/style.css
@@ -451,6 +451,10 @@ form#note textarea {
top: -2px;
}
+#source-mainarea button.save {
+ display: none;
+}
+
#source-mainarea button.reject {
float: right;
top: 2px;
diff --git a/welco/static/js/welco.js b/welco/static/js/welco.js
index b3c0e52..2fd0722 100644
--- a/welco/static/js/welco.js
+++ b/welco/static/js/welco.js
@@ -157,6 +157,10 @@ $(function() {
return false;
});
+ $('.document').delegate('input', 'change', function() {
+ $('.document button.save').trigger('click');
+ });
+
$('.document').delegate('button.save', 'click', function() {
var post_date = $('#id_post_date').val();
var registered_mail_number = $('#id_registered_mail_number').val();