silverstripe/sapphire — comment on commit 9f5e26d12b45c66a80b0317254809f02a3b2dbd3
File: admin/javascript/LeftAndMain.js line 396
By chillu:

$('.cms-container') is more or less a "controller global", rather than the actual panel it loads into.
The panel defaults to ".cms-content", but can be overwritten via loadPanel(url, {selector: '.cms-edit-form'}).
That's mainly architected this way to keep the loading state reproducible in HTML5 history.
We *could* put a loadPanel() entwine method on all panels instead, and infer the selector from the DOM,
although I haven't had a chance to think this through ... would like Hamish's input on the whole architecture at some point anyway :)