aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2018-04-09 13:18:09 +0200
committerGitHub <noreply@github.com>2018-04-09 13:18:09 +0200
commit9dc831f1ef5e59a91eeda2756842b7ac262e1ac6 (patch)
tree08faa8318ab53966279b6de5f3fb51dd595f6aac /include/conversation.php
parent6844d7c752a0d8614aa7490287d72a84a95b3a73 (diff)
parentf9ec3c66ff1305ca0647454d27793ac5365f7f4a (diff)
downloadvolse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.tar.gz
volse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.tar.bz2
volse-hubzilla-9dc831f1ef5e59a91eeda2756842b7ac262e1ac6.zip
Merge pull request #1051 from anaqreon/auto-save
Auto-save comment and post text
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ce0467770..3834d9866 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1301,7 +1301,9 @@ function status_editor($a, $x, $popup = false) {
$id_select = '';
$webpage = ((x($x,'webpage')) ? $x['webpage'] : '');
-
+
+ $feature_auto_save_draft = ((feature_enabled($x['profile_uid'], 'auto_save_draft')) ? "true" : "false");
+
$tpl = get_markup_template('jot-header.tpl');
App::$page['htmlhead'] .= replace_macros($tpl, array(
@@ -1323,6 +1325,7 @@ function status_editor($a, $x, $popup = false) {
'$modalerroralbum' => t('Error getting album'),
'$nocomment_enabled' => t('Comments enabled'),
'$nocomment_disabled' => t('Comments disabled'),
+ '$auto_save_draft' => $feature_auto_save_draft,
));
$tpl = get_markup_template('jot.tpl');