-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(ajax): Adds a new elgg/ajax AMD module with unified API
All elgg/ajax methods transparently handle server-side messages/errors, as well as return the raw value (the JSON wrapper is not exposed to the user as in elgg.action().) A client plugin hook allows modifying the request data, and both client and server-side hooks can modify the returned data. Fixes Elgg#8323
- Loading branch information
Showing
12 changed files
with
936 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
/** | ||
* Remove before merge... | ||
*/ | ||
|
||
system_message('A OK!'); | ||
|
||
echo json_encode([ | ||
'foo' => 'bar', | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.