User tests: Successful: Unsuccessful:
Pull Request for Issue #28980 .
Add onComplete
callback for Joomla.request()
Run npm install
Add to index.php of any template:
<script type="module">
Joomla.request({
url: Joomla.getOptions('system.paths').base + '/index.php?option=com_ajax&type=plugin',
onSuccess: () => console.log('success'),
onError: () => console.log('error'),
onComplete: () => console.log('complete')
});
Joomla.request({
url: Joomla.getOptions('system.paths').base + '/index.php?option=com_ajax&type=plugin&format=raw',
onSuccess: () => console.log('success'),
onError: () => console.log('error'),
onComplete: () => console.log('complete')
});
</script>
Watch result in the browser console.
2 message (1 per request):
error
success
4 message (2 per request):
error
complete
success
complete
If we have a documentation for core.js and Joomla.request, then it need to update.
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
We have to extend allowed line width to 120
This line has a length of 101.
Labels |
Added:
NPM Resource Changed
?
|
We have to extend allowed line width to 120
it's an easy one
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-17 09:51:01 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 1c9ffe0
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33099.