From cb37c0ce1421ecf5ddd00baee39b227307bb10b5 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 7 Nov 2013 15:30:59 -0800 Subject: make PM expiry UI match the main post editor, e.g. JS input triggered by an icon rather than a scary looking text field --- view/tpl/msg-header.tpl | 7 +++++++ view/tpl/prv_message.tpl | 18 ++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/msg-header.tpl b/view/tpl/msg-header.tpl index 5e2597605..79f9e23c1 100755 --- a/view/tpl/msg-header.tpl +++ b/view/tpl/msg-header.tpl @@ -85,6 +85,13 @@ else } } + function prvmailGetExpiry() { + reply = prompt("{{$expireswhen}}", $('#inp-prvmail-expires').val()); + if(reply && reply.length) { + $('#inp-prvmail-expires').val(reply); + } + } + function linkdropper(event) { var linkFound = event.dataTransfer.types.contains("text/uri-list"); if(linkFound) diff --git a/view/tpl/prv_message.tpl b/view/tpl/prv_message.tpl index 35f50da00..621f56be7 100755 --- a/view/tpl/prv_message.tpl +++ b/view/tpl/prv_message.tpl @@ -14,20 +14,17 @@ {{$select}} {{/if}} + +
{{$subject}}
-{{if $feature_expire}} -
{{$expires}}
- -{{/if}} -
{{$yourmessage}}
- +
- +
@@ -36,10 +33,15 @@
- + +
+ +
+ +
-- cgit v1.2.3