From 495b5c38832a08a0b1b88d75c79e182837eefbc7 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 16 Aug 2015 08:46:53 -0400 Subject: [PATCH] Don't display not-sent-warning in compose page on save-pref action --- program/js/app.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 53d678c..7749e29 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -653,7 +653,9 @@ } // check input before leaving compose step - if (this.task == 'mail' && this.env.action == 'compose' && $.inArray(command, this.env.compose_commands) < 0 && !this.env.server_error) { + if (this.task == 'mail' && this.env.action == 'compose' && !this.env.server_error && command != 'save-pref' + && $.inArray(command, this.env.compose_commands) < 0 + ) { if (!this.env.is_sent && this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning'))) return false; -- Gitblit v1.9.1