Implement close button for homepage boxes. Still needs a little work to hide the close icon when the box is forced by admin.

This commit is contained in:
Nathan Gray 2009-09-21 21:29:39 +00:00
parent 84e61f3d92
commit 9ec105b3ca
3 changed files with 5 additions and 2 deletions

View File

@ -145,8 +145,8 @@
$control_array = Array(
'up',
'down',
/*'question',
'close',
/*'question',
'edit'*/
);
@reset($control_array);

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

View File

@ -92,9 +92,12 @@
}
move_boxes($curr_position,$new_order,$offset,$max_count,0);
break;
case 'close':
$GLOBALS['egw']->preferences->add($GLOBALS['egw']->applications->id2name($_GET['app']), 'homepage_display', 0);
$GLOBALS['egw']->preferences->save_repository();
break;
case 'edit':
case 'question':
case 'close':
default:
}