diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js index 59d5a0478..1a0292080 100644 --- a/html/js/accounting_item.js +++ b/html/js/accounting_item.js @@ -29,7 +29,7 @@ * - acc_query for the initial query *@see ajax_poste.php */ -function search_poste(obj) +function search_accounting(obj) { var sx=0; if ( window.scrollY) diff --git a/include/lib/iposte.class.php b/include/lib/iposte.class.php index f0331ef88..4c0a8ee0c 100644 --- a/include/lib/iposte.class.php +++ b/include/lib/iposte.class.php @@ -126,7 +126,7 @@ class IPoste extends HtmlInput public function dsp_button() { $this->id=($this->id=="")?$this->name:$this->id; - $javascript='search_poste(this)'; + $javascript='search_accounting(this)'; $button=Icon_Action::icon_magnifier($this->id."_bt", $javascript); /* add the property */ $sc=$this->get_js_attr();