Skip to content
Code-Schnipsel Gruppen Projekte
Commit dda6a5f6 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-2.x' into 'main'

Next 2.x

See merge request !20
Übergeordnete f1369a9e 19c6dc87
No related branches found
No related tags found
2 Merge Requests!22Update 'next-3.x' with latest changes from 'main',!20Next 2.x
Pipeline #8641 bestanden mit Phase
in 51 Sekunden
......@@ -17,6 +17,7 @@ QUI::$Ajax->registerFunction(
// not execute at the first log in
if (QUI::getPackage('quiqqer/cron')->getConfig()->get('update', 'logged_in_before') === false) {
QUI::getPackage('quiqqer/cron')->getConfig()->set('update', 'logged_in_before', 1);
QUI::getPackage('quiqqer/cron')->getConfig()->save();
return;
}
......
window.addEvent('quiqqerLoaded', function() {
require(['Ajax', 'Locale'], function(QUIAjax, QUILocale) {
const RunningInfo = new Element('div', {
html: '' +
'<span style="padding-right: 10px; font-size: 20px">' +
' <span class="fa fa-circle-o-notch fa-spin"></span>' +
'</span>' +
'<span>' + QUILocale.get('quiqqer/cron', 'message.admin.cron.execution') + '</span>',
styles: {
background: '#fff',
bottom: 20,
boxShadow: 'rgba(35, 46, 60, .04) 0 2px 4px 0',
border: '1px solid rgba(101, 109, 119, .16)',
borderLeft: '.25rem solid #4299e1',
borderRadius: 4,
display: 'flex',
maxWidth: '90%',
padding: 20,
position: 'fixed',
right: 20,
width: 500,
zIndex: 10000
}
}).inject(document.body);
QUIAjax.post('package_quiqqer_cron_ajax_execute', function() {
moofx(RunningInfo).animate({
bottom: 10,
opacity: 0
}, {
callback: () => {
RunningInfo.destroy();
}
});
}, {
'package': 'quiqqer/cron'
});
});
});
......@@ -470,7 +470,7 @@
<de><![CDATA[Führt ein automatisches Security Update durch.]]></de>
<en><![CDATA[Performs an automatic security update.]]></en>
</locale>
</groups>
<groups name="quiqqer/cron" datatype="js">
<locale name="cron.id">
......@@ -913,6 +913,17 @@ This is realized with an external server on which QUIQQER systems can register t
<de><![CDATA[Nicht jetzt]]></de>
<en><![CDATA[Not yet]]></en>
</locale>
<locale name="message.admin.cron.execution">
<de><![CDATA[
Zurzeit wird eine geplante Systemaufgabe (Cron-Job) ausgeführt.
Dadurch können andere Aktionen wie Anfragen oder das Laden von Dateien etwas langsamer sein.
Bitte haben Sie ein wenig Geduld. Vielen Dank für Ihr Verständnis.
]]></de>
<en><![CDATA[
A scheduled system task (cron job) is currently being executed.
As a result, other actions such as requests or loading files may be somewhat slower.
Please be patient. Thank you for your understanding.
]]></en>
</locale>
</groups>
</locales>
......@@ -135,21 +135,7 @@ class EventHandler
// execute cron ?
if ($Config->get('settings', 'executeOnAdminLogin')) {
echo '
<script>
window.addEvent("load", function()
{
require(["Ajax"], function(QUIAjax)
{
QUIAjax.post("package_quiqqer_cron_ajax_execute", function()
{
}, {
"package" : "quiqqer/cron"
});
});
});
</script>';
echo '<script src="' . URL_OPT_DIR . 'quiqqer/cron/bin/executeCronViaAdmin.js"></script>';
}
if (self::$cronWarning) {
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren