From cb86c647762cac037c175921fb691527ff250ca8 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 5 Nov 2022 17:11:04 +0100 Subject: [PATCH] code cleaning : rename search_poste to search_accounting --- html/js/accounting_item.js | 2 +- include/lib/iposte.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();