User tests: Successful: Unsuccessful:
Redo of #22491
Install Joomla, spinner is ok
Make sure that you have custom fields assigned to one category. Edit an article and change its cat to the one that custom fields are attached. spinner is ok
Try a multilingual and check if the spinner works ok
In 4.0 in each page that a spinner is needed the following steps will need to be done:
HTMLHelper::_('webcomponent', 'system/webcomponents/joomla-core-loader.min.js', ['relative' => true, 'version' => 'auto']);
spinner = document.createElement('joomla-core-loader');
// Assuming that the spinner is full screen
document.body.appendChild(spinner);
/*
if we need to append the spinner to some other container
all we have to do is replace document.body with the element
that we want the spinner to appear
*/
spinner = document.querySelector('joomla-core-loader');
spinner.parentNode.removeChild(spinner);
if you want to use the same codebase for different versions (j3 and j4) here is a quick code:
if (Joomla.loadingLayer && typeof Joomla.loadingLayer === 'function') {
// We are in J3 so use the old method
Joomla.loadingLayer('show');
} else {
// We are in the future
spinner = document.createElement('joomla-core-loader');
document.body.appendChild(spinner);
}
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_associations com_categories JavaScript Repository NPM Change Installation |
Labels |
Added:
NPM Resource Changed
?
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-08-29 19:41:10 |
Closed_By | ⇒ | wilsonge |
Thanks!
Thanks
On Windows 10, the logo does not spin during installation in Firefox and Chrome. Can you check? Thanks.
@Quy does this work for you? https://codepen.io/charlie-lodder/pen/rNBQBev
Only difference is that it doesn't use Shadow DOM, which shouldn't really make a difference
It does not. I assume it will automatically spin upon loading the page.
This looks ok. I'm just going to hold on merging this until the new template is in