mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
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:
parent
84e61f3d92
commit
9ec105b3ca
@ -145,8 +145,8 @@
|
|||||||
$control_array = Array(
|
$control_array = Array(
|
||||||
'up',
|
'up',
|
||||||
'down',
|
'down',
|
||||||
/*'question',
|
|
||||||
'close',
|
'close',
|
||||||
|
/*'question',
|
||||||
'edit'*/
|
'edit'*/
|
||||||
);
|
);
|
||||||
@reset($control_array);
|
@reset($control_array);
|
||||||
|
BIN
phpgwapi/templates/idots/images/close.button.png
Normal file
BIN
phpgwapi/templates/idots/images/close.button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 888 B |
@ -92,9 +92,12 @@
|
|||||||
}
|
}
|
||||||
move_boxes($curr_position,$new_order,$offset,$max_count,0);
|
move_boxes($curr_position,$new_order,$offset,$max_count,0);
|
||||||
break;
|
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 'edit':
|
||||||
case 'question':
|
case 'question':
|
||||||
case 'close':
|
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user