From 80c325526000bd27df1b681c3bdea96c216db105 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 6 Jan 2014 15:44:58 +0000 Subject: [PATCH] Remove dragDropFunction.js since it is replaced by jquery d-n-d, so it is depricated --- calendar/js/dragDropFunctions.js | 83 -------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 calendar/js/dragDropFunctions.js diff --git a/calendar/js/dragDropFunctions.js b/calendar/js/dragDropFunctions.js deleted file mode 100644 index e2840aefce..0000000000 --- a/calendar/js/dragDropFunctions.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Calendar - dragNdrop - * - * @link http://www.egroupware.org - * @author Christian Binder - * @package calendar - * @copyright (c) 2006 by Christian Binder - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @version $Id$ - */ - -function dragEvent() -{ - if(minOffset()) - { - // set a fixed width - dd.obj.css.width = dd.obj.w + dd.px; - - // make a snapshot of the old (original) innerHTML of the dragged event - if(!dd.obj.oldInnerHTML) - { - dd.obj.oldInnerHTML = dd.obj.div.innerHTML; - } - - if(dropTarget = dd.obj.getEltBelow()) - { - var datetime = dropTarget.my_datetime; - } - - // we just allow to drop within the users own calendar - // and not crossing into another calendar ATM - if(datetime && (dd.obj.my_calendarOwner == dropTarget.my_owner )) - { - dd.obj.div.innerHTML = '
' + datetime.substr(9,2) + ":" + datetime.substr(11,2) + '
'; - } else { - - dd.obj.div.innerHTML = '
' + dd.obj.my_errorImage + '
'; - } - } -} - -function dropEvent() -{ - // minimum requirements for ajax call - if( minOffset() && - (dropTarget = dd.obj.getEltBelow()) && - (dropTarget.my_datetime) && - (dd.obj.my_calendarOwner == dropTarget.my_owner) - ) - { - dd.obj.div.innerHTML = '
' + dd.obj.my_loaderImage + '
'; - - xajax_doXMLHTTP( - 'calendar.calendar_ajax.moveEvent', - dd.obj.my_eventId, - dd.obj.my_calendarOwner, - dropTarget.my_datetime, - dropTarget.my_owner - ); - } - else - { - // abort - move to old position and restore old innerHTML - if(dd.obj.oldInnerHTML) - { - dd.obj.div.innerHTML = dd.obj.oldInnerHTML; - } - - // restore old width (calendar_calEvent width = 100%) - dd.obj.div.style.width = "100%"; - - dd.obj.moveTo(dd.obj.defx,dd.obj.defy); - } -} - -function minOffset() -{ - var offsetX = Math.abs(dd.obj.defx - dd.obj.x); - var offsetY = Math.abs(dd.obj.defy - dd.obj.y); - - if(offsetX > 5 || offsetY > 5) { return true; } - return false; -}