aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-22 13:44:34 -0800
committerfriendica <info@friendica.com>2013-12-22 13:44:34 -0800
commit30219b5bda724375c10006c33e5754d3f5d1d044 (patch)
treec5753e5afbbe3daf20d6898ec81dc78c2a787f86 /view/tpl/jot-header.tpl
parentbb623fc464b777737114e953653dd4d90b7e2b3d (diff)
parent6480e14a910252f550929d3e1d7520a966dfbb09 (diff)
downloadvolse-hubzilla-30219b5bda724375c10006c33e5754d3f5d1d044.tar.gz
volse-hubzilla-30219b5bda724375c10006c33e5754d3f5d1d044.tar.bz2
volse-hubzilla-30219b5bda724375c10006c33e5754d3f5d1d044.zip
Merge pull request #249 from cvogeley/master
New modal dialog for item expiry
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl24
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>
+ -->
+