Can a Sortable be disabled/deactivated/destroyed once it''s been created? I''ve tried a few different things with no success. Here''s what I''m doing: I have an ordered list. When a particular event happens, I created a Sortable from the list. I clone the list prior to creating the Sortable so I can revert to the original list if sorting is canceled. If, however, I want to keep the changes but disallow further sorting, I''m stuck. Any ideas? Thanks, Dave Strus
V1.1beta1 of script.aculo.us adds this, so you can call Sortable.destroy(''your_sortable_id''). Thomas Am 05.08.2005 um 22:14 schrieb Dave Strus:> Can a Sortable be disabled/deactivated/destroyed once it''s been > created? > I''ve tried a few different things with no success. > > Here''s what I''m doing: > > I have an ordered list. When a particular event happens, I created a > Sortable from the list. I clone the list prior to creating the > Sortable so I > can revert to the original list if sorting is canceled. If, > however, I want > to keep the changes but disallow further sorting, I''m stuck. > > Any ideas? > > Thanks, > Dave Strus > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Excellent! Thanks. -----Original Message----- From: Thomas Fuchs [mailto:thomas@fesch.at] Sent: Friday, August 05, 2005 3:17 PM To: Dave Strus Cc: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] disable Sortable V1.1beta1 of script.aculo.us adds this, so you can call Sortable.destroy(''your_sortable_id''). Thomas Am 05.08.2005 um 22:14 schrieb Dave Strus:> Can a Sortable be disabled/deactivated/destroyed once it''s been > created? > I''ve tried a few different things with no success. > > Here''s what I''m doing: > > I have an ordered list. When a particular event happens, I created a > Sortable from the list. I clone the list prior to creating the > Sortable so I > can revert to the original list if sorting is canceled. If, > however, I want > to keep the changes but disallow further sorting, I''m stuck. > > Any ideas? > > Thanks, > Dave Strus > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
See http://wiki.script.aculo.us/scriptaculous/show/Sortable.destroy (just updated that) :) Thomas Am 05.08.2005 um 22:25 schrieb Dave Strus:> Excellent! Thanks. > > -----Original Message----- > From: Thomas Fuchs [mailto:thomas@fesch.at] > Sent: Friday, August 05, 2005 3:17 PM > To: Dave Strus > Cc: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails-spinoffs] disable Sortable > > V1.1beta1 of script.aculo.us adds this, so you can call > Sortable.destroy(''your_sortable_id''). > > Thomas > > Am 05.08.2005 um 22:14 schrieb Dave Strus: > > >> Can a Sortable be disabled/deactivated/destroyed once it''s been >> created? >> I''ve tried a few different things with no success. >> >> Here''s what I''m doing: >> >> I have an ordered list. When a particular event happens, I created a >> Sortable from the list. I clone the list prior to creating the >> Sortable so I >> can revert to the original list if sorting is canceled. If, >> however, I want >> to keep the changes but disallow further sorting, I''m stuck. >> >> Any ideas? >> >> Thanks, >> Dave Strus >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> > > > >
Works beautifully. Thanks much! -----Original Message----- From: Thomas Fuchs [mailto:thomas@fesch.at] Sent: Friday, August 05, 2005 3:29 PM To: Dave Strus Cc: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] disable Sortable See http://wiki.script.aculo.us/scriptaculous/show/Sortable.destroy (just updated that) :) Thomas Am 05.08.2005 um 22:25 schrieb Dave Strus:> Excellent! Thanks. > > -----Original Message----- > From: Thomas Fuchs [mailto:thomas@fesch.at] > Sent: Friday, August 05, 2005 3:17 PM > To: Dave Strus > Cc: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails-spinoffs] disable Sortable > > V1.1beta1 of script.aculo.us adds this, so you can call > Sortable.destroy(''your_sortable_id''). > > Thomas > > Am 05.08.2005 um 22:14 schrieb Dave Strus: > > >> Can a Sortable be disabled/deactivated/destroyed once it''s been >> created? >> I''ve tried a few different things with no success. >> >> Here''s what I''m doing: >> >> I have an ordered list. When a particular event happens, I created a >> Sortable from the list. I clone the list prior to creating the >> Sortable so I >> can revert to the original list if sorting is canceled. If, >> however, I want >> to keep the changes but disallow further sorting, I''m stuck. >> >> Any ideas? >> >> Thanks, >> Dave Strus >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> >> > > > >