Commit Graph

25 Commits

Author SHA1 Message Date
Pavel Dohnal
56eac1ae86 Add missing callbacks to ajax calls
[MAILPOET-982]
2017-07-06 13:06:14 +01:00
Pavel Dohnal
2285c08c01 Revert "Revert "Improve ajax errors [MAILPOET-929]""
This reverts commit 81c3e2facf.
2017-06-26 13:51:53 +01:00
mrcasual
81c3e2facf Revert "Improve ajax errors [MAILPOET-929]" 2017-06-22 20:04:10 -04:00
Pavel Dohnal
2f6fe8c804 Translate error message
[MAILPOET-929]
2017-06-22 16:47:36 +01:00
Pavel Dohnal
ec3e88e658 Improve error handling for failed AJAX requests
[MAILPOET-929]
2017-06-22 13:35:55 +01:00
Pavel Dohnal
f874ae6ca8 Fix line endings
[MAILPOET-929]
2017-06-22 10:25:07 +01:00
Vlad
6a65ff5e5d Removes default version
Updates all AJAX requests to include api version
Requires namespaces to have version
Clean up code
2017-04-19 23:34:40 -04:00
Vlad
a9c80c031f Adds version support to public API 2017-04-19 15:38:16 -04:00
Jonathan Labreuille
6675d5a20d added default error messages to errorResponse and badRequest 2016-08-03 14:08:22 +02:00
Jonathan Labreuille
28c39d301c Added default error response in case no errors were specified
- converted Setup endpoint
- unit tests for Setup endpoint
2016-08-03 12:41:21 +02:00
Jonathan Labreuille
afa0d3af63 Updated Ajax.js to avoid promise workaround
- Removed get method in ajax.js as it's useless
2016-08-02 18:08:12 +02:00
Jonathan Labreuille
b05344b1d3 added missing data in deferred.resolve() 2016-08-02 17:18:18 +02:00
Jonathan Labreuille
2e88d7cce0 Added API/Endpoint abstract class
- (re)Added Endpoints folder to both API and Router
- fixed syntax in namespaces
- xhr.responseJSON is returned to the fail()
- fixed Router endpoints (view in browser, cron,...)
2016-08-02 17:08:43 +02:00
Jonathan Labreuille
9410d4f10a Reorganized new API + added legacy API support + new API
- Updated Settings Router to new standards
- Updated settings.html to reflect API change with better error handling
- Updated Settings API unit tests
2016-08-01 17:00:32 +02:00
Vlad
5a7d5ac3f0 - Removes object keys with null values when doing an ajax request 2016-07-13 21:06:13 -04:00
Marco
00f06ea202 Revert "Queue" 2015-11-20 23:51:02 +01:00
MrCasual
556a170903 - Bootstraps queue 2015-11-20 16:20:35 -05:00
Jonathan Labreuille
cbcd614b6f implemented all bulk actions for Subscribers 2015-09-16 19:44:46 +02:00
Tautvidas Sipavičius
e20626f1ad Expose jQuery deferred XHR object for access to promises 2015-09-02 17:53:57 +03:00
Jonathan Labreuille
0e2c04d97a many improvements on listing + cleaned up modal library 2015-08-27 22:38:42 +02:00
Jonathan Labreuille
bf5d7f273b Settings JSX
- fixed issue with token in MailPoet Ajax / JSX
- added settings form with get/set
- reformated some code in subscribers.jsx
2015-08-21 13:12:14 +02:00
Jonathan Labreuille
1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00
Jonathan Labreuille
58d83f5fbe fixed MPAjax to behave with router 2015-08-18 15:29:00 +02:00
Vlad
a26cbd6f41 - Renamed Model to BaseModel (make it clear)
- Updated RoboFile to compile assets or else tests break
2015-08-17 15:54:48 +00:00
Tautvidas Sipavičius
6ed4ce0de2 Swap app code with bundles in assets/js/src folder 2015-08-17 14:31:32 +03:00