diff --git a/app/modules/web/Controllers/Helpers/Grid/EventlogGrid.php b/app/modules/web/Controllers/Helpers/Grid/EventlogGrid.php index a428e04d..0d349fdb 100644 --- a/app/modules/web/Controllers/Helpers/Grid/EventlogGrid.php +++ b/app/modules/web/Controllers/Helpers/Grid/EventlogGrid.php @@ -202,7 +202,7 @@ final class EventlogGrid extends GridBase $gridAction->setIcon($this->icons->getIconClear()); $gridAction->setOnClickFunction('eventlog/clear'); $gridAction->addData('action-route', Acl::getActionRoute(ActionsInterface::EVENTLOG_CLEAR)); - $gridAction->addData('nextaction', Acl::getActionRoute(ActionsInterface::EVENTLOG)); + $gridAction->addData('action-next', Acl::getActionRoute(ActionsInterface::EVENTLOG)); return $gridAction; } diff --git a/app/modules/web/Controllers/Helpers/Grid/NotificationGrid.php b/app/modules/web/Controllers/Helpers/Grid/NotificationGrid.php index c0679f51..e1536ccd 100644 --- a/app/modules/web/Controllers/Helpers/Grid/NotificationGrid.php +++ b/app/modules/web/Controllers/Helpers/Grid/NotificationGrid.php @@ -226,7 +226,7 @@ final class NotificationGrid extends GridBase $gridAction->setOnClickFunction('notification/check'); $gridAction->setFilterRowSource('checked'); $gridAction->addData('action-route', Acl::getActionRoute(ActionsInterface::NOTIFICATION_CHECK)); - $gridAction->addData('nextaction', Acl::getActionRoute(ActionsInterface::NOTIFICATION)); + $gridAction->addData('action-next', Acl::getActionRoute(ActionsInterface::NOTIFICATION)); return $gridAction; } @@ -260,7 +260,7 @@ final class NotificationGrid extends GridBase $gridAction->setIcon($this->icons->getIconDelete()); $gridAction->setOnClickFunction('notification/delete'); $gridAction->addData('action-route', Acl::getActionRoute(ActionsInterface::NOTIFICATION_DELETE)); - $gridAction->addData('nextaction', Acl::getActionRoute(ActionsInterface::NOTIFICATION)); + $gridAction->addData('action-next', Acl::getActionRoute(ActionsInterface::NOTIFICATION)); return $gridAction; } diff --git a/app/modules/web/Controllers/ResourceController.php b/app/modules/web/Controllers/ResourceController.php index 67b8f916..b684f36a 100644 --- a/app/modules/web/Controllers/ResourceController.php +++ b/app/modules/web/Controllers/ResourceController.php @@ -55,15 +55,16 @@ final class ResourceController extends SimpleControllerBase ->getMinified(); } else { $this->minify->setType(Minify::FILETYPE_CSS) - ->setBase(PUBLIC_PATH . DIRECTORY_SEPARATOR . 'css') - ->addFiles(['reset.min.css', + ->setBase(PUBLIC_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'css') + ->addFiles([ + 'reset.min.css', 'jquery-ui.min.css', 'jquery-ui.structure.min.css', - 'fonts.min.css', 'material-icons.min.css', 'toastr.min.css', 'magnific-popup.min.css' ], false) + ->addFile('fonts.min.css', false, PUBLIC_PATH . DIRECTORY_SEPARATOR . 'css') ->getMinified(); } } @@ -83,12 +84,12 @@ final class ResourceController extends SimpleControllerBase ->addFilesFromString(urldecode($file)) ->getMinified(); } else { - $this->minify->setType(Minify::FILETYPE_JS) - ->setBase(PUBLIC_PATH . DIRECTORY_SEPARATOR . 'js'); - $group = $this->request->analyzeInt('g', 0); if ($group === 0) { + $this->minify->setType(Minify::FILETYPE_JS) + ->setBase(PUBLIC_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'js'); + $this->minify->addFiles([ 'jquery-3.3.1.min.js', 'jquery-migrate-3.0.0.min.js', @@ -105,6 +106,9 @@ final class ResourceController extends SimpleControllerBase 'jquery.magnific-popup.min.js', 'eventsource.min.js'], false); } elseif ($group === 1) { + $this->minify->setType(Minify::FILETYPE_JS) + ->setBase(PUBLIC_PATH . DIRECTORY_SEPARATOR . 'js'); + // FIXME: use MIN version $this->minify->addFiles([ 'app.js', diff --git a/app/modules/web/themes/material-blue/views/eventlog/datagrid-rows.inc b/app/modules/web/themes/material-blue/views/eventlog/datagrid-rows.inc deleted file mode 100644 index 304a3b55..00000000 --- a/app/modules/web/themes/material-blue/views/eventlog/datagrid-rows.inc +++ /dev/null @@ -1,21 +0,0 @@ - - - -getData()->getDataCount() > 0): - foreach ($data->getData()->getData() as $dataIndex => $dataItem): - if ($dataIndex === 'count'): continue; endif; ?> - -