[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi , please check this: http://jsbin.com/oququ3/6/edit As you can see: - sortable list works - accordion works ...but: - POPUP 'update' does not come what could be wrong here? regards Rafal

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
In your example, you have two calls to $('#elements').sortable(). The second one has the update event added, but the first (the one which creates the sortable) doesn't. If you add the update handler to the first call, it works OK. on 23/02/2010 08:26 rafald said:: Hi , please check this:

[jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread rafald
Hi Peter, Indeed! It works ;-) THANKS! It was enough to remove line with $(#elements).sortable(); So, what is the right place to put: $(#elements).sortable(); ? in my example: the first place was outside $(document).ready(function() the second place (where I added event) was inside $

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-23 Thread Peter Edwards
No problem, $(document).ready(function(){ }); and $(function(){ }); are the same - both will run whatever you have in them when the DOM is ready - the second is just a kind of shorthand for the (much easier to read) first. Docs: .ready() http://api.jquery.com/ready/ $(callback)

[jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread rafald
On 22 Lut, 03:43, Nathan Klatt n8kl...@gmail.com wrote: Hi Rafal, In what way does it not work? I transcribed your code into jsbin and it seems to be fine, though I don't have any roundbox styling being applied: http://jsbin.com/oququ3/edit Nathan Hi I am not surpised you don't get it

[jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread rafald
ok...I see on you page it works...I double checked my code. Here what happens WHEN I replace THIS: $(function(){ $(#elements).sortable(); $(#elements).disableSelection(); }); $(function() { $(#accordion).accordion(); }); $(document).ready(function(){ $('#elements').sortable({ update:

Re: [jQuery] Re: Sortable list - even when list is changed

2010-02-22 Thread Nathan Klatt
On Mon, Feb 22, 2010 at 11:10 AM, rafald rafdrepub...@gmail.com wrote: ok...I see on you page it works...I double checked my code. ... but the problem is I need accordion as well. If you update the jsbin page to how you think it should be (i.e., add the accordion) I'd be happy to look into