migrated resizeable sidebar to common dragdrop class. This prevents breaking jscalendar on internet explorer and other DHTML incompatible browsers

This commit is contained in:
Christian Binder
2007-02-05 19:28:38 +00:00
parent c58a299113
commit 0d9ed45db1
2 changed files with 34 additions and 23 deletions

View File

@ -0,0 +1,12 @@
function dragSidebar()
{
if(!dd.obj.sideresizeStart) { dd.obj.sideresizeStart = dd.obj.x; }
var mainbox = dd.elements.thesideboxcolumn;
mainbox.resizeTo(dd.obj.x-dd.obj.sideresizeStart+parseInt(dd.obj.my_sideboxwidth), mainbox.h);
}
function dropSidebar()
{
var mainbox = dd.elements.thesideboxcolumn;
xajax_doXMLHTTP("preferences.ajaxpreferences.storeEGWPref","common","idotssideboxwidth",mainbox.w);
}