summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript/scriptaculous/dragdrop.js
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2009-12-23 19:10:40 -0500
committerScott Ullrich <sullrich@pfSense.org>2009-12-23 19:10:40 -0500
commit3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6 (patch)
treeed0d77fb2d8f64f969a81914725ddf5b63e33a3d /usr/local/www/javascript/scriptaculous/dragdrop.js
parent72d51890048043fce76c8e931298328dd8dd53a3 (diff)
downloadpfsense-3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6.zip
pfsense-3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6.tar.gz
Updating to 1.8.3
Diffstat (limited to 'usr/local/www/javascript/scriptaculous/dragdrop.js')
-rw-r--r--usr/local/www/javascript/scriptaculous/dragdrop.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr/local/www/javascript/scriptaculous/dragdrop.js b/usr/local/www/javascript/scriptaculous/dragdrop.js
index 07c98e2..15c6dbc 100644
--- a/usr/local/www/javascript/scriptaculous/dragdrop.js
+++ b/usr/local/www/javascript/scriptaculous/dragdrop.js
@@ -1,7 +1,6 @@
-// script.aculo.us dragdrop.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
+// script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
-// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-// (c) 2005-2008 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
+// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
@@ -313,7 +312,7 @@ var Draggable = Class.create({
tag_name=='TEXTAREA')) return;
var pointer = [Event.pointerX(event), Event.pointerY(event)];
- var pos = Position.cumulativeOffset(this.element);
+ var pos = this.element.cumulativeOffset();
this.offset = [0,1].map( function(i) { return (pointer[i] - pos[i]) });
Draggables.activate(this);
@@ -456,7 +455,7 @@ var Draggable = Class.create({
},
draw: function(point) {
- var pos = Position.cumulativeOffset(this.element);
+ var pos = this.element.cumulativeOffset();
if(this.options.ghosting) {
var r = Position.realOffset(this.element);
pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
@@ -732,7 +731,7 @@ var Sortable = {
}
// keep reference
- this.sortables[element.id] = options;
+ this.sortables[element.identify()] = options;
// for onupdate
Draggables.addObserver(new SortableObserver(element, options.onUpdate));
@@ -827,7 +826,7 @@ var Sortable = {
hide().addClassName('dropmarker').setStyle({position:'absolute'});
document.getElementsByTagName("body").item(0).appendChild(Sortable._marker);
}
- var offsets = Position.cumulativeOffset(dropon);
+ var offsets = dropon.cumulativeOffset();
Sortable._marker.setStyle({left: offsets[0]+'px', top: offsets[1] + 'px'});
if(position=='after')
OpenPOWER on IntegriCloud