BUGFIX Inspecting for AjaxSwitchView after form load, not before ajax request (in LeftAndMain.js)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@115065 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-12-15 09:21:32 +00:00
parent 5bdfad6ae8
commit b22a37da6c

View File

@ -390,7 +390,7 @@ var ss_MainLayout;
onmatch: function() {
this._super();
$('#Form_EditForm').bind('load delete', function(e) {
$('#Form_EditForm').bind('loadnewpage delete', function(e) {
var updatedSwitchView = $('#AjaxSwitchView');
if(updatedSwitchView.length) {
$('#SwitchView').html(updatedSwitchView.html());