silverstripe/sapphire — pull request #909 by phptek (2012-10-31 01:59:31+00:00)
Title: Trac 7879

Chrome behaves differently to FF(16) and regardless of preventDefault / stopPropagation being set, clicking the radio button with the area "disabled", re-enables the radio button. The only reliable way to sort this is to hide the radio buttons, and reveal when the area is re-enabled (Differs from design)

Although the primary motivation for this ticket is for UI feedback, I think it consistent to also disable the "Create" button, even though the CMS is clever enough to insert such a paget at the root level of the tree anyway.

A caveat described in the inline docs is that there seems to be no way of getting the selected item in the TreeDropDown when this element is not highlighted by the user. So checking the radio button "Top Level" and clicking back onto "Under another page" does not engage this functionality as it stands.

Tested on Chrome 22, Firefox 16, Safari 6.01 & IE9