CFGSEC : action and ledger are set thanks ajax

Inplace_Switch : new class for ajax with a swith button
This commit is contained in:
Dany De Bontridder 2017-10-04 20:32:01 +02:00
parent b712539fe7
commit 08b86a9742
8 changed files with 242 additions and 91 deletions

View file

@ -111,6 +111,7 @@ EOF;
$v=$this->input->get_value();
$v=(trim($v)=="")?$this->message:$v;
echo $v,
"<img src=\"image/button-edit.png\"/>",
"
<script>
$('{$this->input->id}edit').removeClassName('inplace_edit_input');
@ -132,8 +133,10 @@ EOF;
$v=$this->input->get_value();
$v=(trim($v)=="")?$this->message:$v;
echo $v;
echo "<img src=\"image/button-edit.png\"/>";
echo "</span>";
echo "
<script>
{$this->input->id}edit.onclick=function() {
new Ajax.Updater('{$this->input->id}edit'