From 45bfde71d2e83d4f759ca6ae6e17cd293960fcea Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 28 Oct 2014 06:21:18 -0400 Subject: [PATCH] Fix so draft auto-save does not turn spellchecker off (#1490120) --- program/js/app.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 5d799c2..0fe485a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3652,7 +3652,7 @@ this.save_response = function() { // show dialog to enter a name and to modify the text to be saved - var buttons = {}, text = this.editor.get_content(true, true), + var buttons = {}, text = this.editor.get_content({selection: true, format: 'text', nosig: true}), html = '<form class="propform">' + '<div class="prop block"><label>' + this.get_label('responsename') + '</label>' + '<input type="text" name="name" id="ffresponsename" size="40" /></div>' + @@ -3840,7 +3840,7 @@ if (val = $('[name="_' + hash_fields[i] + '"]').val()) str += val + ':'; - str += this.editor.get_content(); + str += this.editor.get_content({refresh: false}); if (this.env.attachments) for (id in this.env.attachments) -- Gitblit v1.9.1