updates
This commit is contained in:
@@ -11,19 +11,7 @@ export class AppendOptions {
|
||||
}
|
||||
|
||||
if (typeof data === 'string') {
|
||||
|
||||
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]));
|
||||
});
|
||||
Object.entries(JSON.parse(data.countries)).forEach(([k, v]) => target.append(new Option(v, k)));
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import './lightbox.css';
|
||||
import { Ut } from '../../utils/Ut';
|
||||
import { $ } from '../../utils/dom';
|
||||
import { Boot } from '../../core/Boot';
|
||||
import { Stack } from '../../core/Stack';
|
||||
|
||||
////////////////////
|
||||
// LightBox
|
||||
|
||||
@@ -3,8 +3,10 @@ import './uploader.css';
|
||||
import { Ut } from '../../utils/Ut';
|
||||
import { El } from '../../utils/dom';
|
||||
import { Rt } from '../../core/Rt';
|
||||
import { Rc } from '../../core/Rc';
|
||||
import { Boot } from '../../core/Boot';
|
||||
import { Msg } from '../msg/';
|
||||
import { Lightbox } from '../lightbox';
|
||||
|
||||
export class Uploader {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user