diff --git a/html/js/managetable.js b/html/js/managetable.js index ab5914c0a..4e13291ab 100644 --- a/html/js/managetable.js +++ b/html/js/managetable.js @@ -89,6 +89,7 @@ var ManageTable = function (p_table_name) this.mt_style={}; this.sort_column=0; this.afterSaveFct=undefined; // function to call after "save" + this.cssclass="inner_box"; this.param = {"table": p_table_name, "ctl_id": this.control}; //search_table=true; $this->button_add_top=true; $this->title=_("Donnée"); + $this->cssclass="inner_box"; + } + function setCssClass($p_class) { + $this->cssclass=$p_class; + } + function getCssClass() { + return $this->cssclass; + } /** * Set the title of the diabox , default is Donnée * @param type $p_title @@ -448,6 +458,7 @@ function check() {$this->object_name}.set_sort({$this->get_col_sort()}); {$this->object_name}.set_control(\"{$this->get_dialog_box()}\"); {$this->object_name}.set_style($style); + {$this->object_name}.cssclass=\"{$this->cssclass}\"; "; @@ -977,7 +988,10 @@ function check() /** * @brief display into a dialog box the datarow in order * to be appended or modified. Can be override if you need - * a more complex form. + * a more complex form or add elements with "set_order" before + * calling this function. + * This function does not add the form , only the table, + * */ function input() {