diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 6063bf81e..566df6494 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1464,7 +1464,8 @@ $(function() { function printDeleteDocumentButtonJs(){ /* {{{ */ echo " $(document).ready(function () { - $('.delete-document-btn').click(function(ev) { +// $('.delete-document-btn').click(function(ev) { + $('body').on('click', 'a.delete-document-btn', function(ev){ id = $(ev.currentTarget).attr('rel'); confirmmsg = $(ev.currentTarget).attr('confirmmsg'); msg = $(ev.currentTarget).attr('msg'); @@ -1536,7 +1537,8 @@ $(function() { function printDeleteFolderButtonJs(){ /* {{{ */ echo " $(document).ready(function () { - $('.delete-folder-btn').click(function(ev) { +// $('.delete-folder-btn').click(function(ev) { + $('body').on('click', 'a.delete-folder-btn', function(ev){ id = $(ev.currentTarget).attr('rel'); confirmmsg = $(ev.currentTarget).attr('confirmmsg'); msg = $(ev.currentTarget).attr('msg');