Releases: devgeniem/dustpress-js
Releases · devgeniem/dustpress-js
4.4.2
4.4.1
4.4.0
4.3.0
4.0.1
4.0.0
Changed the AJAX calls' MIME type and format
AJAX calls are now in application/json MIME type and return object instead of an array. That needs to be addressed when updating the library in an existing project.
Return for dp function
Merge pull request #7 from devgeniem/1.1.3 new release
Updated composer.json
Allow updates for composer/installers
.
Ajax request accepts get parameters.
The Dustpress.js ajax request now accepts get parameters which are appended to the request url. This is done by adding a string by the key get
containing your get clause into your ajax requst params. Here's how it's done:
dp("SomeModel/SomeMethod", {
tidy: true,
get: "?lang=fi",
success: function( data ) {
// do what you want with the data
},
error: function( error ) {
// possible error
}
});