ergonomy : add waiting box

This commit is contained in:
Dany wm De Bontridder 2020-11-07 14:22:30 +01:00 committed by sparkyx
parent 598978ca80
commit d63d68d979

View file

@ -98,12 +98,12 @@ echo '<div class="content">';
/*
* Let you change the exercice
*/
echo '<form method="GET">';
echo '<form method="GET" onsubmit="waiting_box();return true;">';
echo '<fieldset><legend>' . _('Exercice') . '</legend>';
;
echo _('Choisissez un autre exercice').' :';
$ex = new Exercice($cn);
$wex = $ex->select('exercice', $exercice, ' onchange="submit(this)"');
$wex = $ex->select('exercice', $exercice, ' onchange="waiting_box();submit(this)"');
echo $wex->input();
echo dossier::hidden();
echo HtmlInput::get_to_hidden(array('ac', 'type'));
@ -112,7 +112,7 @@ echo '</form>';
?>
<?php
echo '<FORM METHOD="GET">' . dossier::hidden();
echo '<FORM METHOD="GET" onsubmit="waiting_box();return true;">' . dossier::hidden();
echo HtmlInput::get_to_hidden(array('ac', 'type'));
echo HtmlInput::hidden('type', 'jrn');
echo HtmlInput::get_to_hidden(array('exercice'));