aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl13
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>