ManageTable.js : change Manage.delete by Manage.remove, because delete
is a reserved keyword
This commit is contained in:
parent
e9d8bd74de
commit
4db1e42ef0
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -702,7 +702,7 @@ function check()
|
|||
if ($this->can_delete_row())
|
||||
{
|
||||
echo "<td>";
|
||||
$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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue