N°3551 - Migrate module to new UIBlock system : Customer Survey

This commit is contained in:
acognet
2021-08-16 15:16:08 +02:00
parent f140efd95c
commit 8c8f711fe8
5 changed files with 38 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<?php
// Copyright (C) 2010-2021 Combodo SARL
// Copyright (C) 2010-2012 Combodo SARL
//
// This file is part of iTop.
//
@@ -25,7 +25,7 @@ use Combodo\iTop\Application\UI\Base\Component\Html\Html;
* The WizardController provides the "<< Back" feature by storing a stack
* of the previous screens. The WizardController also maintains from page
* to page a list of "parameters" to be dispayed/edited by each of the steps.
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @copyright Copyright (C) 2010-2012 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
@@ -233,9 +233,9 @@ $('form').each(function () {
width: 0
}));
});
$('#btn_back').on('click', function() { $('#wiz_form').data('back', true); });
$('#btn_back').click(function() { $('#wiz_form').data('back', true); });
$('#wiz_form').on('submit', function() {
$('#wiz_form').submit(function() {
if ($(this).data('back'))
{
return CanMoveBackward();
@@ -346,7 +346,7 @@ on the page's parameters
* If a step needs to maintain an internal "state" (for complex steps)
* then it's up to the derived class to implement the behavior based on
* the internal 'sCurrentState' variable.
* @copyright Copyright (C) 2010-2021 Combodo SARL
* @copyright Copyright (C) 2010-2012 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/