Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
v1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekVolsk committed Feb 11, 2021
1 parent ac3daaa commit 2d0a816
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# View logs

![Version](https://img.shields.io/badge/VERSION-1.3.8-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.3.9-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.2+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# View logs

![Version](https://img.shields.io/badge/VERSION-1.3.8-0366d6.svg?style=for-the-badge)
![Version](https://img.shields.io/badge/VERSION-1.3.9-0366d6.svg?style=for-the-badge)
![Joomla](https://img.shields.io/badge/joomla-3.2+-1A3867.svg?style=for-the-badge)
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)

Expand Down
20 changes: 12 additions & 8 deletions admin/views/items/tmpl/default.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php defined('_JEXEC') or die; ?>
<?php
defined('_JEXEC') or die;

JHtml::_('jquery.framework', true, null, false);
?>

<form action="<?php echo JRoute::_('index.php?option=com_vlogs&view=items'); ?>" method="post" name="adminForm" id="adminForm">
<div id="j-main-container">
Expand All @@ -23,9 +27,9 @@
formData = new FormData(),
response = false,
sel = document.querySelector('#view_select_files');
Joomla.JText.load({info:\"" . JText::_('MESSAGE') . "\",error:\"" . JText::_('ERROR') . "\"});
getLog = function(vfile)
{
document.querySelector('#view_items_list').innerHTML = '';
Expand All @@ -48,7 +52,7 @@
}
};
}
delLog = function(vfile)
{
request.open('POST', location.protocol + '//' + location.host + location.pathname + '?option=com_vlogs&task=getAjax&action=DelFile&filename=' + vfile);
Expand All @@ -72,7 +76,7 @@
}
};
}
archLog = function(vfile)
{
request.open('POST', location.protocol + '//' + location.host + location.pathname + '?option=com_vlogs&task=getAjax&action=ArchiveFile&filename=' + vfile);
Expand Down Expand Up @@ -103,20 +107,20 @@
{
getLog(e.target.value);
});
document.querySelector('#view_refresh_file').addEventListener('click', function(e)
{
getLog(sel.value);
});
var dbtn = document.querySelector('#view_download_file');
if (dbtn) {
dbtn.addEventListener('click', function(e)
{
document.location.href = 'index.php?option=com_vlogs&task=getAjax&action=dwFile&bom=0&filename=' + sel.value;
});
}
var dbbtn = document.querySelector('#view_download_bom_file');
if (dbbtn) {
dbbtn.addEventListener('click', function(e)
Expand Down
2 changes: 1 addition & 1 deletion vlogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>https://alekvolsk.pw</authorUrl>
<copyright>© 2019 Aleksey A. Morozov. All right reserved.</copyright>
<license>GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt</license>
<version>1.3.8</version>
<version>1.3.9</version>
<description>COM_VLOGS_DESC</description>
<creationDate>August 2019</creationDate>
<administration>
Expand Down

0 comments on commit 2d0a816

Please sign in to comment.