diff --git a/admin/templates/documents/docs.tpl b/admin/templates/documents/docs.tpl index fadca43..5b7be46 100644 --- a/admin/templates/documents/docs.tpl +++ b/admin/templates/documents/docs.tpl @@ -226,7 +226,7 @@ {if $item->cantEdit==1 && $item->Id != 1 && $item->Id != $PAGE_NOT_FOUND_ID} - + {/if} diff --git a/admin/templates/js/docs.js b/admin/templates/js/docs.js index abbde87..5f8da6e 100644 --- a/admin/templates/js/docs.js +++ b/admin/templates/js/docs.js @@ -14,6 +14,7 @@ var AveDocs = { // list: function () { this.addDocument(); + this.documentCopy(); this.selectAllDocuments(); this.documentAction(); this.documentPublish(); @@ -171,7 +172,7 @@ var AveDocs = { // documentCopy: function () { - $(".CopyDocs").on('click', function (event) { + $(".documentCopy").on('click', function (event) { event.preventDefault(); let href = $(this).attr('href'); @@ -183,8 +184,7 @@ var AveDocs = { } else { $.jGrowl(copy_doc_no, {theme: 'error'}); } - } - ); + }); }); },