API CHANGE Renamed CMSMain->AddPageOptionsForm() to AddForm()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92797 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:18:51 +00:00
parent 604c9798a2
commit b9bfcc99b5
4 changed files with 8 additions and 8 deletions

View File

@ -46,7 +46,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
'unpublish',
'versions',
'EditForm',
'AddPageOptionsForm',
'AddForm',
'SiteTreeAsUL',
'getshowdeletedsubtree',
'getfilteredsubtree',
@ -1015,7 +1015,7 @@ JS;
}
}
function AddPageOptionsForm() {
function AddForm() {
$pageTypes = array();
foreach( $this->PageTypes() as $arrayData ) {
@ -1032,7 +1032,7 @@ JS;
new FormAction("addpage", _t('CMSMain.GO',"Go"))
);
$form = new Form($this, "AddPageOptionsForm", $fields, $actions);
$form = new Form($this, "AddForm", $fields, $actions);
$form->addExtraClass('actionparams');

View File

@ -156,12 +156,12 @@
/**
* @class Simple form with a page type dropdown
* which creates a new page through #Form_EditForm and adds a new tree node.
* @name ss.Form_AddPageOptionsForm
* @name ss.Form_AddForm
* @requires ss.i18n
* @requires ss.Form_EditForm
*/
$('#Form_AddPageOptionsForm').concrete(function($) {
return/** @lends ss.Form_AddPageOptionsForm */{
$('#Form_AddForm').concrete(function($) {
return/** @lends ss.Form_AddForm */{
/**
* @type DOMElement
*/

View File

@ -11,7 +11,7 @@ SiteTreeHandlers.showRecord_url = 'admin/show/';
SiteTreeHandlers.controller_url = 'admin';
var _HANDLER_FORMS = {
addpage : 'Form_AddPageOptionsForm',
addpage : 'Form_AddForm',
batchactions : 'batchactionsforms',
search : 'search_options'
};

View File

@ -19,7 +19,7 @@
</ul>
<div id="TreeActions-create">
$AddPageOptionsForm
$AddForm
</div>
<div id="TreeActions-search">