aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-07 15:30:59 -0800
committerfriendica <info@friendica.com>2013-11-07 15:30:59 -0800
commitcb37c0ce1421ecf5ddd00baee39b227307bb10b5 (patch)
treefca63a2c1300f35292bdc4de5c954d70aa02a6c0 /mod/message.php
parent7381326b7a7a271da52464d15774a1309adb2bd5 (diff)
downloadvolse-hubzilla-cb37c0ce1421ecf5ddd00baee39b227307bb10b5.tar.gz
volse-hubzilla-cb37c0ce1421ecf5ddd00baee39b227307bb10b5.tar.bz2
volse-hubzilla-cb37c0ce1421ecf5ddd00baee39b227307bb10b5.zip
make PM expiry UI match the main post editor, e.g. JS input triggered by an icon rather than a scary looking text field
Diffstat (limited to 'mod/message.php')
-rw-r--r--mod/message.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/mod/message.php b/mod/message.php
index dbbe8836b..c03875e24 100644
--- a/mod/message.php
+++ b/mod/message.php
@@ -272,7 +272,8 @@ function message_content(&$a) {
'$baseurl' => $a->get_baseurl(true),
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
'$nickname' => $channel['channel_address'],
- '$linkurl' => t('Please enter a link URL:')
+ '$linkurl' => t('Please enter a link URL:'),
+ '$expireswhen' => t('Expires YYYY-MM-DD HH:MM')
));
$preselect = (isset($a->argv[2])?array($a->argv[2]):false);
@@ -324,8 +325,9 @@ function message_content(&$a) {
'$insert' => t('Insert web link'),
'$wait' => t('Please wait'),
'$submit' => t('Submit'),
- '$expires' => t('Expires: (leave blank for never)'),
- '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? '1' : ''),
+ '$defexpire' => '',
+ '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? 'block' : 'none'),
+ '$expires' => t('Set expiration date'),
));
return $o;
@@ -401,7 +403,8 @@ function message_content(&$a) {
'$nickname' => $channel['channel_addr'],
'$baseurl' => $a->get_baseurl(true),
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
- '$linkurl' => t('Please enter a link URL:')
+ '$linkurl' => t('Please enter a link URL:'),
+ '$expireswhen' => t('Expires YYYY-MM-DD HH:MM')
));
@@ -500,8 +503,9 @@ function message_content(&$a) {
'$insert' => t('Insert web link'),
'$submit' => t('Submit'),
'$wait' => t('Please wait'),
- '$expires' => t('Expires: (leave blank for never)'),
- '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? '1' : ''),
+ '$defexpire' => '',
+ '$feature_expire' => ((feature_enabled(local_user(),'content_expire')) ? 'block' : 'none'),
+ '$expires' => t('Set expiration date'),
));
return $o;