This commit is contained in:
M@d D3n 2020-06-30 22:04:58 +03:00
parent db68f67b25
commit 875de048e0
2 changed files with 4 additions and 4 deletions

View File

@ -226,7 +226,7 @@
<!-- Копировать -->
{if $item->cantEdit==1 && $item->Id != 1 && $item->Id != $PAGE_NOT_FOUND_ID}
<a class="topDir CopyDocs floatleft" title="{#DOC_COPY#}" href="index.php?do=docs&action=copy&rubric_id={$item->rubric_id}&Id={$item->Id}&cp={$sess}">
<a class="topDir documentCopy floatleft" title="{#DOC_COPY#}" href="index.php?do=docs&action=copy&rubric_id={$item->rubric_id}&Id={$item->Id}&cp={$sess}">
<span class="icon_sprite_doc icon_copy"></span>
</a>
{/if}

View File

@ -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'});
}
}
);
});
});
},