mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
23 lines
780 B
PHP
23 lines
780 B
PHP
<!-- Savant template - sidebox dhtml -->
|
|
<?php $this->xajaxobj->printJavascript($this->xajaxincdir); ?>
|
|
<script language="JavaScript" type="text/javascript">SET_DHTML("thesideboxcolumn"+NO_DRAG)</script>
|
|
<script language="JavaScript" type="text/javascript">ADD_DHTML("sideresize"+CURSOR_W_RESIZE+MAXOFFBOTTOM+0+MAXOFFTOP+0+MAXOFFLEFT+1000+MAXOFFRIGHT+1000)</script>
|
|
<script language="JavaScript" type="text/javascript">
|
|
var mainbox = dd.elements.thesideboxcolumn;
|
|
var rt = dd.elements.sideresize;
|
|
var rtxstart= rt.x;
|
|
|
|
function my_DragFunc()
|
|
{
|
|
if (dd.obj == rt)
|
|
{
|
|
mainbox.resizeTo(rt.x-rtxstart+<?=$this->sideboxwidth?>, mainbox.h);
|
|
}
|
|
}
|
|
|
|
function my_DropFunc()
|
|
{
|
|
xajax_storeEGWPref('common','idotssideboxwidth',mainbox.w);
|
|
}
|
|
</script>
|