[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test |
Date: |
Mon, 18 Dec 2017 13:22:38 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit d3a8fc07240b515f2258230fa7f389c7f37ec8e9
Author: Dany De Bontridder <address@hidden>
Date: Tue Sep 26 22:56:59 2017 +0200
Inplace_Edit : improve button + test
---
include/lib/inplace_edit.class.php | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/include/lib/inplace_edit.class.php
b/include/lib/inplace_edit.class.php
index 855773e..3de0fac 100644
--- a/include/lib/inplace_edit.class.php
+++ b/include/lib/inplace_edit.class.php
@@ -71,9 +71,10 @@ class Inplace_Edit
* @brief response in ajax to be edited
*/
function ajax_input() {
+ ob_start();
echo $this->input->input();
- echo '<a class="smallbutton"
id="inplace_edit_ok'.$this->input->id.'">'._('ok').'</a>';
- echo '<a class="smallbutton"
id="inplace_edit_cancel'.$this->input->id.'">'._('cancel').'</a>';
+ echo '<a style="display:inline" class="smallbutton"
id="inplace_edit_ok'.$this->input->id.'">'._('ok').'</a>';
+ echo '<a style="display:inline" class="smallbutton"
id="inplace_edit_cancel'.$this->input->id.'">'._('cancel').'</a>';
echo <<<EOF
<script>
{$this->input->id}edit.onclick=null;
@@ -93,12 +94,16 @@ class Inplace_Edit
</script>
EOF;
+ $ret= ob_get_contents();
+ ob_end_clean();
+ return $ret;
}
/***
* @brief display the value with the click event
*/
function input() {
+ ob_start();
echo <<<EOF
<span class="inplace_edit" id="{$this->input->id}edit" >
EOF;
@@ -111,7 +116,10 @@ EOF;
,'{$this->callback}',
{parameters: {$this->json} ,evalScripts:true});}
</script>
- ";
+ ";
+ $ret= ob_get_contents();
+ ob_end_clean();
+ return $ret;
}
/**
* @brief the php callback file to call for ajax
- [Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete, (continued)
- [Noalyss-commit] [noalyss] 164/219: Code cleaning : remove obsolete, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 83/219: NUM_FIELD = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 129/219: Anc ODS : esthetic search analytic accounting, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 188/219: Plan Comptable : max longueur du poste = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 69/219: HttpInput : do not use in_array but array_key_exists,, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 217/219: Acc_Account : add function , improve function verify, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 49/219: improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 136/219: Infobulle : avoid that the info balloon exceed limit of the display, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 171/219: remove useless, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 61/219: Inplace_Edit : improve button + test,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 124/219: indentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 21/219: Improve debugging and improve manage_table_sql element will be added at the right place Manage_Table_SQL can work also with a SQL query or a view Icon place can be modified, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 34/219: rename scenario files, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 31/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation Documentation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 63/219: Analytic : change the name and description in Ajax, improve esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 116/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 56/219: Task #1469 : Les esperluettes ne passent pas dans les libellés pour «opération identique»., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 189/219: Task #1506 Fiche : max longueur du poste comptable = 40, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 195/219: Task #001381 : favori de filtre , ajout des favoris de filtre dans les recherches., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 71/219: Task #0001475: Todo note : il manque le bouton "Fermer", Dany De Bontridder, 2017/12/18