From b22a37da6c6caa9629b153bd85b52458d3337842 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 15 Dec 2010 09:21:32 +0000 Subject: [PATCH] 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 --- javascript/LeftAndMain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 7ee30d2e..a6135ed2 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -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());