noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 202/219: ManageTable.js : change Manage.delet


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 202/219: ManageTable.js : change Manage.delete by Manage.remove, because delete is a reserved keyword
Date: Mon, 18 Dec 2017 13:23:03 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4db1e42ef0a16fed50a6fd8e830d43e050c8304b
Author: Dany De Bontridder <address@hidden>
Date:   Wed Dec 13 09:44:49 2017 +0100

    ManageTable.js : change Manage.delete by Manage.remove, because delete
    is a reserved keyword
---
 html/js/managetable.js                 | 2 +-
 include/lib/manage_table_sql.class.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/html/js/managetable.js b/html/js/managetable.js
index a7d8b9c..afe2799 100644
--- a/html/js/managetable.js
+++ b/html/js/managetable.js
@@ -247,7 +247,7 @@ var ManageTable = function (p_table_name)
      address@hidden call the ajax with action delete
      address@hidden 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 4234397..68437b0 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 "<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"));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]