mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 08:48:42 +00:00
style fixes, bug fixes
This commit is contained in:
parent
0adf8dbf94
commit
0e4381bc34
|
|
@ -206,7 +206,10 @@ export class GeneralUI
|
||||||
const length = e.length;
|
const length = e.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
e[i].src = UriFactory.build(e[i].src);
|
if (e[i].getAttribute('data-src') !== null) {
|
||||||
|
// prevent double loading
|
||||||
|
e[i].src = UriFactory.build(e[i].getAttribute('data-src'));
|
||||||
|
}
|
||||||
|
|
||||||
e[i].addEventListener('load', function () {
|
e[i].addEventListener('load', function () {
|
||||||
const spinner = this.parentElement.getElementsByClassName('ispinner');
|
const spinner = this.parentElement.getElementsByClassName('ispinner');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user