diff --git a/html/js/managetable.js b/html/js/managetable.js index a7d8b9c78..afe2799b1 100644 --- a/html/js/managetable.js +++ b/html/js/managetable.js @@ -247,7 +247,7 @@ var ManageTable = function (p_table_name) *@brief call the ajax with action delete *@param id (pk) of the data row */ - this.delete = function (p_id, p_ctl) { + this.remove = function (p_id, p_ctl) { this.param['p_id'] = p_id; this.param['action'] = 'delete'; this.param['ctl'] = p_ctl; diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 42343979e..68437b030 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -702,7 +702,7 @@ function check() if ($this->can_delete_row()) { echo ""; - $js=sprintf("%s.delete('%s','%s');", $this->object_name, + $js=sprintf("%s.remove('%s','%s');", $this->object_name, $p_row[$this->table->primary_key], $this->object_name ); echo HtmlInput::image_click("trash-24.gif", $js, _("Effacer"));