2007-01-02 15:08:32 +01:00
|
|
|
<!-- Savant template - sidebox dhtml -->
|
2007-01-05 22:49:36 +01:00
|
|
|
<?php
|
|
|
|
// workaround to get rid of the "too much recursion" timeout if other app uses wz_dragdrop too
|
|
|
|
// if we moved the DHTML here to the dragdrop class we can remove this workaround
|
|
|
|
$GLOBALS['egw_info']['flags']['wz_dragdrop_runonce_SET_DHTML'] = true;
|
|
|
|
?>
|
2007-01-02 15:08:32 +01:00
|
|
|
<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()
|
|
|
|
{
|
2007-01-04 17:34:23 +01:00
|
|
|
xajax_doXMLHTTP("preferences.ajaxpreferences.storeEGWPref","common","idotssideboxwidth",mainbox.w);
|
2007-01-02 15:08:32 +01:00
|
|
|
}
|
2007-01-05 22:49:36 +01:00
|
|
|
</script>
|