Improve documentation
This commit is contained in:
parent
ff0bc1651e
commit
4f1d7e155a
1 changed files with 20 additions and 0 deletions
|
|
@ -75,6 +75,26 @@
|
|||
|
||||
* @endcode
|
||||
*
|
||||
* The afterSaveFct is the function called after saving, the param is the HTML Element
|
||||
@code PHP
|
||||
// to redirect : we take the pk_id and redirect to another location
|
||||
|
||||
$obj=$this->get_object_name();
|
||||
$url=DRIVINGSCHOOL_URL;
|
||||
$script=<<<EOF
|
||||
(function(){
|
||||
{$obj}.afterSaveFct=function(p_param) {
|
||||
let student=p_param.attributes["ctl_pk_id"].value;
|
||||
window.location="{$url}/do.php?do=student&student_id="+student+"&act=detail";
|
||||
}})();
|
||||
EOF;
|
||||
|
||||
echo create_script($script);
|
||||
{$obj}.afterSaveFct=function(p_param) {
|
||||
let student=p_param.attributes["ctl_pk_id"].value;
|
||||
window.location="{$url}/do.php?do=student&student_id="+student+"&act=detail";
|
||||
}})();
|
||||
@endcode
|
||||
*/
|
||||
|
||||
class Manage_Table_SQL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue