aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorDM42.Net Hubzilla Development <hzdev@dm42.net>2019-11-28 05:27:12 +0000
committerMario <mario@mariovavti.com>2019-11-28 09:42:59 +0100
commit3e133bbfa3c5a0b7c86aa3ba2f0dccad1520cc53 (patch)
treef266f341a012833d2b8f1f0b2f78b7439b103ab9 /view/tpl
parent6c8d1bdffef0c1d83ca1bdbc0caeeb41fc8aa3df (diff)
downloadvolse-hubzilla-3e133bbfa3c5a0b7c86aa3ba2f0dccad1520cc53.tar.gz
volse-hubzilla-3e133bbfa3c5a0b7c86aa3ba2f0dccad1520cc53.tar.bz2
volse-hubzilla-3e133bbfa3c5a0b7c86aa3ba2f0dccad1520cc53.zip
Move auto_save_draft to header from thread comment
(cherry picked from commit c86b35da701674510a97ccc21e46581bd864cc31)
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/comment_item.tpl3
-rwxr-xr-xview/tpl/head.tpl1
2 files changed, 1 insertions, 3 deletions
diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl
index 23594677c..3b51971ec 100755
--- a/view/tpl/comment_item.tpl
+++ b/view/tpl/comment_item.tpl
@@ -1,6 +1,3 @@
- <script>
- var auto_save_draft = {{$auto_save_draft}};
- </script>
{{if $threaded}}
<div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}" style="display: block;">
{{else}}
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 5f874426c..bd4cf3747 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -15,6 +15,7 @@
{{if $channel_hash}}var channelHash = '{{$channel_hash}}';{{/if}}
{{if $channel_id}}var channelId = '{{$channel_id}}';{{/if}}{{* Used in e.g. autocomplete *}}
var preloadImages = {{$preload_images}};
+ var auto_save_draft = {{$auto_save_draft}};
</script>