N°6446 Fix OAuth landing page missing jQuery library needed in ajax calls

This commit is contained in:
Stephen Abello
2023-06-27 11:23:09 +02:00
parent 178e82a039
commit ccf1d7ecfb
4 changed files with 50 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
<?php
/**
* Copyright (C) 2013-2023 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
// Navigation menu
Dict::Add('EN US', 'English', 'English', array(
'core/Operation:Landing/Title' => 'OAuth token creation',
));

View File

@@ -0,0 +1,23 @@
<?php
/**
* Copyright (C) 2013-2023 Combodo SARL
*
* This file is part of iTop.
*
* iTop is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iTop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
*/
// Navigation menu
Dict::Add('FR FR', 'French', 'Français', array(
'core/Operation:Landing/Title' => 'Création d\'un jeton OAuth',
));

View File

@@ -377,7 +377,7 @@ abstract class Controller extends AbstractController
}
/**
* Display an AJAX page (AjaxPage)
* Display an Setup page (SetupPage)
*
* @api
*

View File

@@ -3,11 +3,13 @@
namespace Combodo\iTop\Controller\OAuth;
use Combodo\iTop\Application\TwigBase\Controller\Controller;
use utils;
class OAuthLandingController extends Controller
{
public function OperationLanding()
{
$this->DisplayAjaxPage([]);
$this->AddLinkedScript(utils::GetAbsoluteUrlAppRoot().'/js/jquery.min.js');
$this->DisplayPage([], null, static::ENUM_PAGE_TYPE_BASIC_HTML);
}
}