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} {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> <span class="icon_sprite_doc icon_copy"></span>
</a> </a>
{/if} {/if}

6
admin/templates/js/docs.js

@ -14,6 +14,7 @@ var AveDocs = {
// //
list: function () { list: function () {
this.addDocument(); this.addDocument();
this.documentCopy();
this.selectAllDocuments(); this.selectAllDocuments();
this.documentAction(); this.documentAction();
this.documentPublish(); this.documentPublish();
@ -171,7 +172,7 @@ var AveDocs = {
// //
documentCopy: function () { documentCopy: function () {
$(".CopyDocs").on('click', function (event) { $(".documentCopy").on('click', function (event) {
event.preventDefault(); event.preventDefault();
let href = $(this).attr('href'); let href = $(this).attr('href');
@ -183,8 +184,7 @@ var AveDocs = {
} else { } else {
$.jGrowl(copy_doc_no, {theme: 'error'}); $.jGrowl(copy_doc_no, {theme: 'error'});
} }
} });
);
}); });
}, },

Loading…
Cancel
Save