mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
N°6446 Fix OAuth landing page missing jQuery library needed in ajax calls
This commit is contained in:
@@ -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',
|
||||
));
|
||||
@@ -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',
|
||||
));
|
||||
@@ -377,7 +377,7 @@ abstract class Controller extends AbstractController
|
||||
}
|
||||
|
||||
/**
|
||||
* Display an AJAX page (AjaxPage)
|
||||
* Display an Setup page (SetupPage)
|
||||
*
|
||||
* @api
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user