This repository has been archived on 2020-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
2010-09-10 17:46:24 +02:00
|
|
|
var DragRegObserver = Class.create();
|
|
|
|
DragRegObserver.prototype = {
|
|
|
|
initialize: function(element) {
|
|
|
|
this.element = $(element);
|
|
|
|
},
|
|
|
|
onStart: function() {},
|
|
|
|
onEnd: function (eventName, draggable, event) {
|
|
|
|
if (Draggables.activeDraggable.element == this.element) {
|
|
|
|
elem = draggable.element;
|
|
|
|
new Ajax.Request('http://localhost:3301/savepos/' + elem.id +
|
|
|
|
'/' + elem.style.top + '/' + elem.style.left);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2010-06-19 00:51:58 +02:00
|
|
|
|
2010-09-10 17:46:24 +02:00
|
|
|
function maxZIndex() {
|
|
|
|
return $$('.draggable').map(function(d) { return d.getStyle("z-index") }).max();
|
2010-06-19 00:51:58 +02:00
|
|
|
}
|