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 +++++++ 1 file changed, 7 insertions(+) (limited to 'view/tpl/msg-header.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) -- cgit v1.2.3