wp-e-commerce/WP-e-Commerce — pull request #457 by curtismchale (2013-05-25 06:11:05+00:00)
Title: Early JS push to disable display box with mandatory checked

Goes with #419

Just a really early stab at dealing with this, especially since I haven't written JS quite as I see it in the template yet.

All this does is alert that something happened since it's late and I'm not thinking as well as I should.

Is it formatted properly?

My thoughts are that on toggle we will check if it is indeed :checked and if so disable the matching 'display' checkbox.

A question would be, when we load the page should we be disabling the display checkboxes that have a mandatory checkbox already set from server side, or should we be firing a JS event to do that.

A JS event would leave all the checkboxes accessible in the event no JS is loaded (not sure how big that use case is) but not have the UI feedback. If we do it server side, then we get the UI feedback but some checkboxes are disabled till we get a page refresh.