MINOR Fixed some jQuery.concrete getters

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102504 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-12 21:52:39 +00:00
parent 85133f3db5
commit bb3012a7ab
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
});
// The close button should close the east panel of the layout
this.find(':header:first .ui-dialog-titlebar-close').bind('click', function(e) {
$('body.CMSMain').concrete('ss').MainLayout().close('east');
$('body.CMSMain').concrete('ss').getMainLayout().close('east');
return false;
});

View File

@ -56,13 +56,13 @@
// Can't use $('contentPanel'), as its in a different window
window.parent.document.getElementById('contentPanel').style.display = "none";
// toggle layout panel
jQuery('body.CMSMain').concrete('ss').MainLayout().close('east');
jQuery('body.CMSMain').concrete('ss').getMainLayout().close('east');
} else {
ed.controlManager.setActive(showCommand, true);
window.parent.document.getElementById('contentPanel').style.display = "block";
// toggle layout panel
jQuery('body.CMSMain').concrete('ss').MainLayout().resizeAll();
jQuery('body.CMSMain').concrete('ss').MainLayout().open('east');
jQuery('body.CMSMain').concrete('ss').getMainLayout().resizeAll();
jQuery('body.CMSMain').concrete('ss').getMainLayout().open('east');
}
}