aolarchive / jquery-liveupdate

Other
8 stars 2 forks source link

Images inserted in between existing posts doesn't appear in correct location #29

Closed jeremyjannotta closed 11 years ago

jeremyjannotta commented 11 years ago

If you upload an image in the CMS, and drag it down in between two posts, instead of the top, the image always appears at the top of the widget instead of being inserted in the right location. If the widget is refreshed it appears in the right place.

Looks like we need to make the widget obey the 'p', or parent, property when adding posts. I think we currently use it for comments, but nothing else.

jeremyjannotta commented 11 years ago

Now obeys the 'p' attribute for any post, so all post types will always be in the correct order.

Fixed in https://github.com/aol/jquery-liveupdate/commit/e09028f7fe2f61a713b25dd41fbb7c263898854f .