From 875de048e012f32f57d947463426b68313bacd68 Mon Sep 17 00:00:00 2001 From: "M@d D3n" Date: Tue, 30 Jun 2020 22:04:58 +0300 Subject: [PATCH] Fixes --- admin/templates/documents/docs.tpl | 2 +- admin/templates/js/docs.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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'}); } - } - ); + }); }); },