Just out of curiousity, has anyone done drag and drop ajax sorting with betternestedset? Just trying to establish how straight forward this is before I promise my client the feature.. Tekin Suleyman Raid Associates Ltd 120/122 Grosvenor Street Manchester M1 7HL tel: 0161 272 8310 web: www.raid.nu <http://www.raid.nu/> email: tekin at raid.nu The information contained in this electronic mail may contain confidential or legally privileged information. It is for the intended recipient(s)only. Further communication will signify your consent to this. Should you receive this message in error, please notify the sender by replying to this mail. If you are not the intended recipient, any disclosure, distribution, reproduction, printing or reliance on the contents of this information is strictly prohibited. Whilst all care has been taken, Raid Associates Ltd is not responsible for the integrity of any attachments included within. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071010/9e950a87/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 839 bytes Desc: not available Url : http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071010/9e950a87/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 163 bytes Desc: not available Url : http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071010/9e950a87/attachment-0001.gif
Le 10 oct. 07 ? 12:04, Tekin Suleyman a ?crit :> Just out of curiousity, has anyone done drag and drop ajax sorting > with betternestedset? Just trying to establish how straight forward > this is before I promise my client the feature..Do you know this: http://dev.oriontransfer.co.nz/SortableTree/ If you can adapt it to nested_set, propose to commit it here ;-) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071010/c70ce935/attachment.html
I was just attacking this in an app today.... First step was finding something that would be able to move a page left or right within it''s siblings (ie, not change level yet) I made this but for the life of me can not figure out why it is not working: def move_higher list = self.self_and_siblings index = list.rindex(self) self.move_to_left_of list[index - 1] if index > 0 self.save! end Anyone have any insight? I have been looking at it too long. Basically, you use this on an instance of page. Like page.move_higher. Idea is to move it up if it is not the first child and shift all others down one. Regards Mikel On 10/11/07, Jean-Christophe Michel <lists.jc.michel at symetrie.com> wrote:> > > Le 10 oct. 07 ? 12:04, Tekin Suleyman a ?crit : > > Just out of curiousity, has anyone done drag and drop ajax sorting with > betternestedset? Just trying to establish how straight forward this is > before I promise my client the feature.. > > > Do you know this: > http://dev.oriontransfer.co.nz/SortableTree/ > > If you can adapt it to nested_set, propose to commit it here ;-) > > _______________________________________________ > Betternestedset-talk mailing list > Betternestedset-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/betternestedset-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071026/a6e170c1/attachment.html