Browse Source

Fixes

master
M@d D3n 4 years ago
parent
commit
875de048e0
  1. 2
      admin/templates/documents/docs.tpl
  2. 6
      admin/templates/js/docs.js

2
admin/templates/documents/docs.tpl

@ -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}

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

Loading…
Cancel
Save