dreamingmind / bindery

CakePHP 1.3 Based Dreaming Mind Bindery Site
2 stars 2 forks source link

contact/address js data synchronization is not working right #274

Closed dreamingmind closed 9 years ago

dreamingmind commented 9 years ago

This is on the first checkout page that gets addresses.

The second address always appears. If empty it should set to mirror first. If matching it should hide.

The name should copy to the first address (and potentially to the second).

Something is not getting set in the second address when it matches. because entering the first and submitting emits a mysterious fill-out-field prompt and prevents you from advancing.

curlyjason commented 9 years ago

Is it possible that there's a required field that's not being set?

.................... Jason

On Jan 26, 2015, at 3:26 PM, Don Drake notifications@github.com wrote:

This is on the first checkout page that gets addresses.

The second address always appears. If empty it should set to mirror first. If matching it should hide.

The name should copy to the first address (and potentially to the second).

Something is not getting set in the second address when it matches. because entering the first and submitting emits a mysterious fill-out-field prompt and prevents you from advancing.

— Reply to this email directly or view it on GitHub.

dreamingmind commented 9 years ago

That's probably true. If I toggle the 'match' checkbox, it will snap into place.

But this whole page is a candidate for the mediator pattern. Wikipedia is okay on the topic, but the design pattern book is right on the mark for what I'd like to have here.

But I've never looked at design patterns in a js program.

I may just tweak this page (which is close to operational) rather than refactor it.

dreamingmind commented 9 years ago

That's probably true. If I toggle the 'match' checkbox, it will snap into place.

But this whole page is a candidate for the mediator pattern. Wikipedia is okay on the topic, but the design pattern book is right on the mark for what I'd like to have here.

But I've never looked at design patterns in a js program.

I may just tweak this page (which is close to operational) rather than refactor it.