From 9ec105b3cab3bb46a411e2734cce26899d5e8e4f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 21 Sep 2009 21:29:39 +0000 Subject: [PATCH] Implement close button for homepage boxes. Still needs a little work to hide the close icon when the box is forced by admin. --- phpgwapi/inc/class.portalbox.inc.php | 2 +- phpgwapi/templates/idots/images/close.button.png | Bin 0 -> 888 bytes set_box.php | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 phpgwapi/templates/idots/images/close.button.png diff --git a/phpgwapi/inc/class.portalbox.inc.php b/phpgwapi/inc/class.portalbox.inc.php index 613584e4d0..e19685b03a 100755 --- a/phpgwapi/inc/class.portalbox.inc.php +++ b/phpgwapi/inc/class.portalbox.inc.php @@ -145,8 +145,8 @@ $control_array = Array( 'up', 'down', - /*'question', 'close', + /*'question', 'edit'*/ ); @reset($control_array); diff --git a/phpgwapi/templates/idots/images/close.button.png b/phpgwapi/templates/idots/images/close.button.png new file mode 100644 index 0000000000000000000000000000000000000000..b2cc9be41452c0b0690ec99fb3159ea031645b23 GIT binary patch literal 888 zcmV-;1Bd*HP)OcNoV%@7uS~f4;PDyD}=KXBpMAk(wUGX1n}GRv{+tQ z`SH%e!WRJYe&x?~eK>IWvZS3pjlHXjN})hybCb&ECgoxgM|U?Jx=!zn8&c5W82&mQ z9|4djG)*-Nh5K4GDs{zTSZy}cK!A>uC;3n;QZAM7o;!!y*@?sL=Ci&&ywRv+FBI-4 zG)+}}x<2-CanV`Z-KDy_i`8xiz#9rtGYs0CPTYY&Ym{20f@v5yvsvevSZqwOC`wEM zwx2&|vDxJOty_4G9|s_C_Uxg5$iIBa>eLi_^YgR;E=3uzBz(Sa8e3Z(MlOfEx5t}w z8eb%W!|gtl{3e}dd3+q}{5+M_RV+gA!RNCm&3^-$rb#}Tq`lds`u;rxgNF!qUcbgn zCTUw+!zBa?U;$)owhXfTX;nQv3_g6wiAaQ_=(}=-?tAwrd%ZXTr^Q0UX3NS(y}oF5 zxv2a73_W>5Xkeg~^w-=R`Anu|$F5(;H#tdNQE;j%f7k0NzVvw12jOt}@!+8NXc%H2 ze?EIAW+3E5+l>wJ%cV|eIQL$JujvX6qZf%K~+qbDztE8Vk z<@cL6IkCP@WMzfqwQJ;Gy<+FxJN}rQ#GcEEHBB2`E*49zQ~ov{p9z@ea7Q>S)t8p= zzj%QPpPnqUaq%MU{ryODbK)nPt#!(W#B?_vAL*=CzdNHS4$bSuR;%Gq6zuKo$lKfe zy0=$JIvk@D|0kw>Bs5Juuj^x8t2O2_&0Y&owOTVd(@g!G&5kb}k@G(*zFP~W^S&DZ O0000preferences->add($GLOBALS['egw']->applications->id2name($_GET['app']), 'homepage_display', 0); + $GLOBALS['egw']->preferences->save_repository(); + break; case 'edit': case 'question': - case 'close': default: }