silverstripe/silverstripe-cms — pull request #59 by simonwelsh (2012-02-11 01:16:13+00:00)
Title: BUGFIX Page location radio buttons update ParentID accordingly

The changes to SiteTree wrap the two fields in the div that the JS is expecting.

The changes to the JS store the ParentID as a data attribute on the subpage button, which is then used to set ParentID when switching from root to subpage.