diff options
-rwxr-xr-x | view/tpl/jot-header.tpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 687ad7302..878e1e7da 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -309,11 +309,16 @@ function enableOnUser(){ <script> $( 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> |