Skip to content

Commit

Permalink
2.29.0 Major refactoring of Signals Controller for having all three w…
Browse files Browse the repository at this point in the history
…eb display modes ajax driven
  • Loading branch information
classaxe committed Jan 17, 2021
1 parent 108f560 commit b194e46
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 204 deletions.
6 changes: 3 additions & 3 deletions public/js/functions.js
@@ -1,8 +1,8 @@
/*
* Project: RXX - NDB Logging Database
* Homepage: https://rxx.classaxe.com
* Version: 2.28.8
* Date: 2021-01-15
* Version: 2.29.0
* Date: 2021-01-17
* Licence: LGPL
* Copyright: 2021 Martin Francis
*/
Expand Down Expand Up @@ -2749,7 +2749,7 @@ var SIGNALS_FORM = {

var SIGNALS = {
loadList: function(args) {
var url = shareableLink.signalsUrl() + '&show=json';
var url = shareableLink.signalsUrl() + '&show=list';
$.get(url, function(data) {
var c, cols, html, i, id, j, key, row, s, tde, tds, title, value;
html = [];
Expand Down
6 changes: 3 additions & 3 deletions public/js/functions.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/Controller/Web/Admin/Tools.php
Expand Up @@ -6,6 +6,7 @@
use Swift_Mailer;
use Swift_Message;
use Swift_Transport_EsmtpTransport;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

Expand All @@ -16,6 +17,7 @@
class Tools extends Base
{
private $mailer;
private $request;
private $system;

/**
Expand All @@ -31,16 +33,19 @@ class Tools extends Base
* @param $_locale
* @param $system
* @param $tool
* @param Request $request
* @param Swift_Mailer $mailer
* @return Response|void
*/
public function controller(
$_locale,
$system,
$tool,
Request $request,
Swift_Mailer $mailer
) {
$this->system = $system;
$this->request = $request;
$this->mailer = $mailer;
if (!$this->parameters['isAdmin']) {
$this->session->set('route', 'admin/tools');
Expand Down Expand Up @@ -151,7 +156,7 @@ private function systemExportDb() {

private function systemEmailTest()
{
$email = $_REQUEST['email'] ?? '';
$email = $this->request->query->get('email') ?? '';
if ('' === $email) {
$message = sprintf(
$this->i18n('<strong>%s / %s</strong><br />No valid email was provided'),
Expand Down

0 comments on commit b194e46

Please sign in to comment.