2007-01-05 22:49:36 +01:00
|
|
|
<?php
|
2007-02-05 20:28:38 +01:00
|
|
|
require_once(EGW_INCLUDE_ROOT . '/phpgwapi/inc/class.dragdrop.inc.php');
|
2007-01-02 15:08:32 +01:00
|
|
|
|
2007-02-05 20:28:38 +01:00
|
|
|
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_dragdrop'])
|
|
|
|
{
|
|
|
|
$dragdrop = new dragdrop();
|
2007-01-02 15:08:32 +01:00
|
|
|
|
2007-02-05 20:28:38 +01:00
|
|
|
$dragdrop->addCustom(
|
|
|
|
'thesideboxcolumn',
|
|
|
|
array('NO_DRAG'),
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
false
|
|
|
|
);
|
|
|
|
|
|
|
|
$dragdrop->addCustom(
|
|
|
|
'sideresize',
|
|
|
|
array('CURSOR_W_RESIZE','MAXOFFBOTTOM+0','MAXOFFTOP+0','MAXOFFLEFT+1000','MAXOFFRIGHT+1000'),
|
|
|
|
array('sideboxwidth'=>$this->sideboxwidth),
|
|
|
|
'phpgwapi.dragDropFunctions.dragSidebar',
|
|
|
|
'phpgwapi.dragDropFunctions.dropSidebar'
|
|
|
|
);
|
|
|
|
|
|
|
|
$dragdrop->setJSCode();
|
|
|
|
}
|