change name alternate_row_color

This commit is contained in:
Dany De Bontridder 2017-01-28 11:03:39 +01:00
parent c680698c89
commit f081c363af
3 changed files with 4 additions and 4 deletions

View file

@ -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");
}

View file

@ -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;

View file

@ -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);
}
/**