search for: sortableobserver

Displaying 6 results from an estimated 6 matches for "sortableobserver".

2006 Jun 14
5
generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
Hi folks. I''m working on a project where I need some drag and drop, but I need to implement what happens in a very different way, so I''m creating my own class for it. I don''t want to reinvent the wheel and redo Thomas'' excellent drag/drop functionality, nor do I want to copy/paste his code over into mine. So, I was wondering, has anyone tried to extract
2006 Aug 18
1
Possible to ''Reset'' sortable?
Hi all, I have a sortable list (tree) that interacts with various droppables. [List 1] [List 2] [List 3] [List 4] [Drop here 1] [List 5] [Drop here 2] Now, on dragging [List 2] and dropping it on [Drop here 2] a certain action takes place. I then want [List 2] to return to its original location. However, it returns to the list below [List 4]. So, any ideas how I can get it to
2005 Jul 25
5
dragdrop.js: drop from sortable
I have a Sortable that''s working like a charm, but now I would like to be able to drop objects from that Sortable onto a Droppable that''s not part of my Sortable. I just did a small test page where it didn''t work, so my first question has to be "is this supposed to work?", before I dig too deep into it. "accept" for the droppable is set to the
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...n() {}, onUpdate: function() {} }.extend(arguments[1] || {}); $(element).sortable_tag = options.tag; // convenience for serializing $(element).sortable_onChange = options.onChange; Element.cleanWhitespace(element); // fixes Gecko engine Draggables.addObserver(new SortableObserver(element, options.onUpdate)); ---- In the class above, you create a function called onChange() which is a javascript function. Then you create a reference to onchange from an element in the DOM. $(element).sortable_onChange=options.onChange; So what''s happening is this: function/class...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...@@ -560,7 +560,7 @@ var Draggable = Class.create({ H = documentElement.clientHeight; } else { W = body.offsetWidth; - H = body.offsetHeight + H = body.offsetHeight; } } return { top: T, left: L, width: W, height: H }; @@ -591,9 +591,9 @@ var SortableObserver = Class.create({ var Sortable = { SERIALIZE_RULE: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/, - + sortables: { }, - + _findRootElement: function(element) { while (element.tagName.toUpperCase() != "BODY") { if(element.id && Sortable.sortables[element.id]) ret...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server