updates
This commit is contained in:
@@ -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 {
|
||||||
|
|
||||||
|
|||||||
@@ -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,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user