datetime icon indicating copy to clipboard operation
datetime copied to clipboard

Selected dates not being added to input fields

Open designermonkey opened this issue 9 years ago • 4 comments

I am trying to figure out why any new dates that are selected in the UI are not updating the start/end fields, and not being persisted into the entry.

In reading the JS for the field, I have come across this:

// Visualise
item.trigger('visualise', [{
    start: from,
    end: to
}, focus]);

I can't see any event registered anywhere that would pick up this call and action a UI update. Am I missing something?

designermonkey avatar Oct 17 '16 10:10 designermonkey

Right then, so I neglected to look in the calendar JS.

I still can't find anywhere that the new values are being added to the input fields.

designermonkey avatar Oct 17 '16 10:10 designermonkey

I still can't find anywhere that the new values are being added to the input fields.

Am I not sure if I fully understand the problem.

I am trying to figure out why any new dates

Are those new dates coming from sort of javascript code ? Because I can reproduce the problem...

nitriques avatar Oct 27 '16 00:10 nitriques

When I use the calendar to select dates, it creates new inputs if it needs to, but never populates the values with any dates, so nothing gets posted to the database; there are selections in the calendar, and empty input fields.

designermonkey avatar Oct 27 '16 08:10 designermonkey

I do not have this problem ..

image

I am running Symphony 2.6.8 (latest) and datetime 3.5.3 (latest). Could it be browser specific ? Any js errors ?

nitriques avatar Jan 06 '17 22:01 nitriques