CHANGELOG.md in ajax_pagination-0.2.0 vs CHANGELOG.md in ajax_pagination-0.3.0

- old
+ new

@@ -1,4 +1,20 @@ +## v0.3.0 +* Class method ajax_pagination :reload option - a string in json form no longer accepted, pass it in as a hash or array of hashes instead +* image option added to ajax_pagination view helper, to specify a loading image other than the default +* For reloading of a page section on browser back/forward, urlregex urlparts option changed to parse the url in strict mode +* Fixed bug: The loading never stopped if page was invalid, it will now display the error page properly +* Fixed bug: back/forward not loading properly in certain cases +* AJAX Pagination now uses jquery-ujs! The internals have changed, but the released public API has not otherwise changed. However, this important change allows AJAX Pagination to handle links and forms requesting via POST, PUT and DELETE methods. +* Added link helper ajax_link_to, which wraps link_to. This helper is useful for one-off links to perform an AJAX call. In fact, the output link format that required to get AJAX Pagination to work. +* The original way to specify that links use AJAX Pagination - wrapping links within a container of ajaxpagination class, with data-pagination attribute is now a convenience feature provided, which actually uses javascript to set the same link attributes as the link helper. +* Added support for redirection - redirects are intercepted, and if they are AJAX calls with a pagination url parameter, will be modified into a Status 200 OK response with Location header. The AJAX call be manually follow the redirect, and update the url in the address bar. the pagination url parameter context can also be kept. +* Add support for changing page title in the returned AJAX partial which is better if using for site-wide navigation (before it simply preserved the previous title) +* Scrolling feature fixed, and a new configuration - scroll_margin provided +* Added form helpers which trigger ajax pagination +* Added ajax_options method, which can be used especially with form helpers from gems such as Formtastic or Simple Form. +* Added specs for new features (including displaying error pages, redirecting within div, submitting forms with PUT POST DELETE, testing ajax_link_to, ajax_form_tag, ajax_form_for (and with all these, indirectly testing ajax_options), title changes) + ## v0.2.0 **Note: The API has changed slightly from previous versions. If you have used an advanced feature - the :partial option, please use :render now, and if used in a controller, a non-partial template will be used. To use a partial, specify :render => { :partial => "" }.** * Fix jquery_rails dependency, requires jQuery 1.7+ * rename :partial option to :render in controller_additions methods (all instance and class methods added to ActionController). This is because it now has behaviour like the ActionController render function rather than the ActionView render function