index 82aac59eee198e016f7bdae4c8acf11ecfb2b04b..9dd83864c87abca7542ae2ccb0f2686a501b7a49 100644 (file)
Store data also into a session var, to keep the checkboxes check after reload */
function save_object()
{
Store data also into a session var, to keep the checkboxes check after reload */
function save_object()
{
+ /* Get up to date config */
+ if(isset($this->parent->config)){
+ $this->config = $this->parent->config;
+ }
+
/* Update current base */
if($this->DepartmentsAdded){
$s_action ="";
/* Update current base */
if($this->DepartmentsAdded){
$s_action ="";
/* Create header snapshot value */
function get_snapshot_header()
{
/* Create header snapshot value */
function get_snapshot_header()
{
- $str = "";
+ $str = " ";
if($this->parent->snapshotEnabled()){
$ok = false;
foreach($this->parent->get_used_snapshot_bases() as $base){
if($this->parent->snapshotEnabled()){
$ok = false;
foreach($this->parent->get_used_snapshot_bases() as $base){
function GetSnapShotActions($dn)
{
function GetSnapShotActions($dn)
{
- $str = "";
+ $str= "";
if($this->parent->snapshotEnabled()){
if($this->parent->snapshotEnabled()){
- $str .="<input class='center' type='image' src='images/snapshot.png'
- alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".base64_encode($dn)."' title='"._("Create a new snapshot from this object")."'> ";
-
if(count($this->parent->Available_SnapsShots($dn))){
if(count($this->parent->Available_SnapsShots($dn))){
- $str .="<input class='center' type='image' src='images/restore.png'
+ $str.= "<input class='center' type='image' src='images/restore.png'
alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
- }else{
- $str.= "<img src='images/empty.png' style='width:16px;' class='center'> ";
+ } else {
+ $str = "<img class='center' src='images/restore_grey.png'> ";
}
}
+
+ $str.= "<input class='center' type='image' src='images/snapshot.png'
+ alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".base64_encode($dn)."' title='"._("Create a new snapshot from this object")."'> ";
}
}
+
return($str);
}
return($str);
}