From 917d0ced4a1f0890172b90a9551131fa43bea78b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 25 Oct 2015 16:54:18 -0700 Subject: new feature: delayed posting --- view/tpl/jot-header.tpl | 13 +++++++++++++ view/tpl/jot.tpl | 28 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) (limited to 'view/tpl') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 7e12c6bb3..b405e4ac8 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -234,6 +234,19 @@ function enableOnUser(){ }) } + function jotGetPubDate() { + //reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); + $('#createdModal').modal(); + $('#created-modal-OKButton').on('click', function() { + reply=$('#created-date').val(); + if(reply && reply.length) { + $('#jot-created').val(reply); + $('#createdModal').modal('hide'); + } + }) + } + + function jotShare(id) { if ($('#jot-popup').length != 0) $('#jot-popup').show(); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index e61d75fee..bc3915f93 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -8,6 +8,7 @@ + @@ -91,6 +92,11 @@ {{/if}} + {{if $feature_future}} + + {{/if}} {{if $feature_encrypt}} + + + + + + + + + + + {{if $content || $attachment || $expanded}} {{/if}} -- cgit v1.2.3