- Only use form data for file uploads. Fixes being able to post data with
<a data-data="" />
.
- Replaced
statusCode
andcomplete
callbacks with Promise methods of the jqXHR object returned by$.ajax()
(.done()
,.fail()
, and.always()
) for more verbose response handling - Updated
package.json
"jquery"
dependency to">=1.8.3"
for consistency withbower.json
- Bumped version of
eldarion-ajax-core.js
to 0.13.0 - Updated
README.md
to reflect changes
- Reintroduced file upload support using
FormData
if it is supported by the browser, falling back toform.serialize()
if not.
- Fixed some typos in README (#78, #53)
- Added support for handling 403 errors (#72)
- Add UMD support (#77)
- Added a triggerHandler for easy manipulation of data prior to sending to server
- Added support for sending data with a.click
- Closed #38 by adding support for setting up interval and timeout timers
- Renamed components.json to bower.json
- Factored AJAX request logic into a shared function between form.submit and a.click
- Provide data defaults in case the server didn't return response data. This allows for a more consistent method for writing handlers.
This was a very minor release. Should have likely been a 0.7.3, except that I wanted to start versioning eldarion-ajax-core.js and eldarion-ajax-handlers.js separately and maintain a combined eldarion-ajax.min.js version on top of that, which I reasoned should warrant a point release, however, I made the mistake of going to 0.9.0 instead of just 0.8.0.
- Did a bunch of non-functional internal improvements
- Added test suite with tests running across latest 4 versions of jQuery
- Fixed issues identified by linting
- Updated internal style
- Added some documentation
- Hooked up Travis CI integration
- Fixed bug in the fragments handlers
Skipped this version by mistake
- Closed #36 by sending X-Eldarion-Ajax header with each AJAX request
- Closed #25 by triggering event for status code 400
- renamed library to eldarion-ajax
- broke apart core and handlers
- got rid of FormData to be more widely compatible
- removed the form input clearing
- removed spinner
- added a new event at the begin of a transaction
- add data-remove processing directive
- add data-clear processing directive
- add *-closest variants of data-remove and data-clear
- remove processError and replaced with triggering bootstrap-ajax:error with the element and statusCode as parameters
- scope the event triggering
- added support for appending fragments
- added support for prepending fragments
- enabled file uploads
- added custom events that are triggered at the end of processing data (both success and error responses)
- added an explicit "json" dataType to the ajax call
- added suport for replacing a selectors inner content
- reset button of form to be enabled when ajax request completes
- only reset form if ajax is succesful
- added ability to prepend response data
- added support for inner fragments
- added support for updating multiple fragments at the same time
- added the clearing of the fields of a submitted form
Initial version