forked from tykayn/funky-framadate-front
add time to date func
This commit is contained in:
parent
82910a9aae
commit
94162c796c
@ -292,7 +292,11 @@ export class FormComponent implements OnInit {
|
|||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
addTimeToDate(config: any, id: number) {
|
addTimeToDate(config: any, id: number) {
|
||||||
this.timeList.push({ literal: '' });
|
this.timeList.push({
|
||||||
|
literal: '',
|
||||||
|
timeList: [],
|
||||||
|
date_object: new Date(),
|
||||||
|
});
|
||||||
const selector = '[ng-reflect-choice_label="dateTime_' + id + '_Choices_' + (this.timeList.length - 1) + '"]';
|
const selector = '[ng-reflect-choice_label="dateTime_' + id + '_Choices_' + (this.timeList.length - 1) + '"]';
|
||||||
this.cd.detectChanges();
|
this.cd.detectChanges();
|
||||||
const elem = this.document.querySelector(selector);
|
const elem = this.document.querySelector(selector);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user