diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-12-22 14:21:57 +0100 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-12-22 14:21:57 +0100 |
commit | 25a533bd72c34e9775af71c010a39db6caf7b633 (patch) | |
tree | 2b9aa40233162b813ccec6c4caa28d380c7fcabd /view/tpl/jot-header.tpl | |
parent | 18defb2984db8447a43de6bcffb3bdc5e596a8e0 (diff) | |
download | volse-hubzilla-25a533bd72c34e9775af71c010a39db6caf7b633.tar.gz volse-hubzilla-25a533bd72c34e9775af71c010a39db6caf7b633.tar.bz2 volse-hubzilla-25a533bd72c34e9775af71c010a39db6caf7b633.zip |
New modal dialog for item expiry
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 1ceca04c6..09d035979 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -194,10 +194,17 @@ function enableOnUser(){ } function jotGetExpiry() { - reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); - if(reply && reply.length) { + //reply = prompt("{{$expirewhen}}", $('#jot-expire').val()); + $('#expiryModal').modal(); + $('#expiry-modal-OKButton').on('click', function() { + reply=$('#expiration-date').val(); + if(reply && reply.length) { $('#jot-expire').val(reply); + $('#expiryModal').modal('hide'); } +}) + + } function jotShare(id) { @@ -299,3 +306,16 @@ function enableOnUser(){ </script> +<!-- +<script> +$( document ).on( "click", ".wall-item-delete-link", function(e) { + var link = $(this).attr("href"); // "get" the intended link in a var + e.preventDefault(); + bootbox.confirm("<h4>Delete item?</h4>", function(result) { + if (result) { + document.location.href = link;} + }); + }); +</script> + --> + |