diff options
author | friendica <info@friendica.com> | 2014-01-15 03:14:07 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-15 03:14:07 -0800 |
commit | 403b01da236e24a986cdc63e2b43c3aed2baf20c (patch) | |
tree | 85a5952e7b983bbbd2cf4cf6abce56ce83eb6fb6 /view/tpl | |
parent | 47b8071ca7968ea489bd00c0746a2be39d6a6f2d (diff) | |
parent | d0e657f0f034b10f35bae56f1834d7e41e552486 (diff) | |
download | volse-hubzilla-403b01da236e24a986cdc63e2b43c3aed2baf20c.tar.gz volse-hubzilla-403b01da236e24a986cdc63e2b43c3aed2baf20c.tar.bz2 volse-hubzilla-403b01da236e24a986cdc63e2b43c3aed2baf20c.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 37fa3d069..878e1e7da 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -307,13 +307,18 @@ function enableOnUser(){ </script> <script> -$( document ).on( "click", ".wall-item-delete-link,.page-delete-link", function(e) { +$( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-delete-link,.block-delete-link", function(e) { var link = $(this).attr("href"); // "get" the intended link in a var - e.preventDefault(); - bootbox.confirm("<h4>{{$confirmdelete}}</h4>", function(result) { + + if (typeof(eval($.fn.modal)) === 'function'){ + e.preventDefault(); + bootbox.confirm("<h4>{{$confirmdelete}}</h4>",function(result) { if (result) { document.location.href = link;} - }); + });} + else { + return confirm("{{$confirmdelete}}"); + } }); </script> |