[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 145/151: change name alternate_row_color
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 145/151: change name alternate_row_color |
Date: |
Sat, 4 Feb 2017 17:14:36 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit f081c363af4d0058e2154a6d671d5cdfc3f5fde7
Author: Dany De Bontridder <address@hidden>
Date: Sat Jan 28 11:03:39 2017 +0100
change name alternate_row_color
---
html/js/managetable.js | 4 ++--
html/js/scripts.js | 2 +-
include/lib/class_manage_table_sql.php | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/html/js/managetable.js b/html/js/managetable.js
index 9dfed0b..1e84a54 100644
--- a/html/js/managetable.js
+++ b/html/js/managetable.js
@@ -178,7 +178,7 @@ var ManageTable = function (p_table_name)
smoke.alert("Changement impossible");
throw "error in save";
}
- alternate_row("tb"+answer['ctl']);
+ alternate_row_color("tb"+answer['ctl']);
remove_waiting_box();
$("dtr").hide();
} catch (e) {
@@ -212,7 +212,7 @@ var ManageTable = function (p_table_name)
if (answer['status'] == 'OK') {
var x=answer['ctl_row'];
$(x).hide();
- alternate_row("tb"+answer['ctl']);
+ alternate_row_color("tb"+answer['ctl']);
}else {
smoke.alert("Effacement impossible");
}
diff --git a/html/js/scripts.js b/html/js/scripts.js
index c1ac848..83054b9 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -2941,7 +2941,7 @@ window.onload=function ()
* @brief Colorize the rows of the table
* @param string p_table id of the table
*/
-function alternate_row(p_table)
+function alternate_row_color(p_table)
{
var len = $(p_table).tBodies[0].rows.length;
var i = 0;
diff --git a/include/lib/class_manage_table_sql.php
b/include/lib/class_manage_table_sql.php
index 87432cb..1964e15 100644
--- a/include/lib/class_manage_table_sql.php
+++ b/include/lib/class_manage_table_sql.php
@@ -423,7 +423,7 @@ class Manage_Table_SQL
sprintf("%s.input('-1','%s')", $this->object_name,
$this->object_name));
}
- printf ('<script> alternate_row("tb%s");</script>',
$this->object_name);
+ printf ('<script> alternate_row_color("tb%s");</script>',
$this->object_name);
}
/**
- [Noalyss-commit] [noalyss] 117/151: Indent properly, (continued)
- [Noalyss-commit] [noalyss] 117/151: Indent properly, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 89/151: remove debug info, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 114/151: Move class_table_sql to lib , since it is usable without Noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 127/151: Add the noalyss version in the info page, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 121/151: Fix several issue in JS, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 98/151: Correct simul.py remove old file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 146/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 142/151: Doc : complete documentation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 119/151: correct syntax, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 151/151: Improve description, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 145/151: change name alternate_row_color,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 137/151: Remove console.log from JS Safer function for XML (problem with escaping), Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 122/151: Test ManageTable ; fix several bugs and add the ajax answer , it not yet finished, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 62/151: Experiment less, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 149/151: Correct doxygen, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 49/151: Remove unused documentation, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 100/151: Remove unused documentation, Dany De Bontridder, 2017/02/04