aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-01 18:05:04 -0700
committerzotlabs <mike@macgirvin.com>2017-08-01 18:05:04 -0700
commita97b09210e977d52a5bda1dee2b1eddc19afc013 (patch)
tree98ae52f892549b6c0464243dc3b8a3caedd1e585 /include/conversation.php
parent9476c631b0f9ba52be869b0c430fea81f4202352 (diff)
downloadvolse-hubzilla-a97b09210e977d52a5bda1dee2b1eddc19afc013.tar.gz
volse-hubzilla-a97b09210e977d52a5bda1dee2b1eddc19afc013.tar.bz2
volse-hubzilla-a97b09210e977d52a5bda1dee2b1eddc19afc013.zip
auto preview when inserting a media item or embed into a post. Since this unanticipated action could be alarming (some might think the post was actually submitted), also provide a visible preview indicator within the previewed content. Remove the css for the old striped background image which hasn't been available for previewed content for a year or two.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 1c1a4479d..460c97efb 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -467,6 +467,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$preview = (($page_mode === 'preview') ? true : false);
$previewing = (($preview) ? ' preview ' : '');
+ $preview_lbl = t('This is an unsaved preview');
if ($mode === 'network') {
@@ -684,6 +685,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
'mode' => $mode,
'approve' => t('Approve'),
'delete' => t('Delete'),
+ 'preview_lbl' => $preview_lbl,
'id' => (($preview) ? 'P0' : $item['item_id']),
'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, $profile_url),
'profile_url' => $profile_link,