mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 15:00:07 +01:00
remove an old js() method from timesheet_ui which were no longer used in the code.
This commit is contained in:
parent
b6480b3fcb
commit
3f862f8b9a
@ -904,9 +904,6 @@ class timesheet_ui extends timesheet_bo
|
|||||||
$sel_options['ts_project'] = $projects + array(lang('No project'));
|
$sel_options['ts_project'] = $projects + array(lang('No project'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// to be moved in a seperate file if rewrite is over
|
|
||||||
$GLOBALS['egw_info']['flags']['java_script'] .= $this->js();
|
|
||||||
|
|
||||||
// dont show [Export] button if app is not availible to the user or we are on php4
|
// dont show [Export] button if app is not availible to the user or we are on php4
|
||||||
$readonlys['export'] = !$GLOBALS['egw_info']['user']['apps']['importexport'] || (int) phpversion() < 5;
|
$readonlys['export'] = !$GLOBALS['egw_info']['user']['apps']['importexport'] || (int) phpversion() < 5;
|
||||||
return $etpl->exec(TIMESHEET_APP.'.timesheet_ui.index',$content,$sel_options,$readonlys,$preserv);
|
return $etpl->exec(TIMESHEET_APP.'.timesheet_ui.index',$content,$sel_options,$readonlys,$preserv);
|
||||||
@ -1223,18 +1220,4 @@ class timesheet_ui extends timesheet_bo
|
|||||||
$etpl = new etemplate_new('timesheet.editstatus');
|
$etpl = new etemplate_new('timesheet.editstatus');
|
||||||
$etpl->exec('timesheet.timesheet_ui.editstatus',$content,$sel_options,$readonlys,$preserv);
|
$etpl->exec('timesheet.timesheet_ui.editstatus',$content,$sel_options,$readonlys,$preserv);
|
||||||
}
|
}
|
||||||
|
|
||||||
function js()
|
|
||||||
{
|
|
||||||
return '<script LANGUAGE="JavaScript">
|
|
||||||
|
|
||||||
function timesheet_export()
|
|
||||||
{
|
|
||||||
egw_openWindowCentered(
|
|
||||||
"'. $GLOBALS['egw']->link('/index.php','menuaction=importexport.uiexport.export_dialog&appname=timesheet&selection=use_all') . '",
|
|
||||||
"Export",400,400);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
</script>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user