Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected dates not being added to input fields #177

Open
designermonkey opened this issue Oct 17, 2016 · 4 comments
Open

Selected dates not being added to input fields #177

designermonkey opened this issue Oct 17, 2016 · 4 comments

Comments

@designermonkey
Copy link

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
Copy link
Author

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 designermonkey changed the title Missing event? Selected dates not being added to input fields Oct 17, 2016
@nitriques
Copy link
Member

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...

@designermonkey
Copy link
Author

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.

@nitriques
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants