This commit is contained in:
2025-12-01 03:09:26 +02:00
parent 05e6358326
commit b17c779cfa
3 changed files with 5 additions and 14 deletions
+1 -13
View File
@@ -11,19 +11,7 @@ export class AppendOptions {
} }
if (typeof data === 'string') { if (typeof data === 'string') {
Object.entries(JSON.parse(data.countries)).forEach(([k, v]) => target.append(new Option(v, k)));
if (data == '{}') {
return this;
}
data.slice(1).slice(0, -1).split(',').forEach(function(token) {
let option = token.split(':').map(function(a) {
return a.slice(1).slice(0, -1);
});
target.append(new Option(option[1], option[0]));
});
} }
else { else {
+1
View File
@@ -3,6 +3,7 @@ import './lightbox.css';
import { Ut } from '../../utils/Ut'; import { Ut } from '../../utils/Ut';
import { $ } from '../../utils/dom'; import { $ } from '../../utils/dom';
import { Boot } from '../../core/Boot'; import { Boot } from '../../core/Boot';
import { Stack } from '../../core/Stack';
//////////////////// ////////////////////
// LightBox // LightBox
+3 -1
View File
@@ -3,8 +3,10 @@ import './uploader.css';
import { Ut } from '../../utils/Ut'; import { Ut } from '../../utils/Ut';
import { El } from '../../utils/dom'; import { El } from '../../utils/dom';
import { Rt } from '../../core/Rt'; import { Rt } from '../../core/Rt';
import { Rc } from '../../core/Rc';
import { Boot } from '../../core/Boot'; import { Boot } from '../../core/Boot';
import { Msg } from '../msg/'; import { Msg } from '../msg/';
import { Lightbox } from '../lightbox';
export class Uploader { export class Uploader {
@@ -611,7 +613,7 @@ export class Uploader {
} }
}), this); }), this);
newLightbox(this.ui); new Lightbox(this.ui);
} }
/** /**