API CHANGE Removed @deprecated 2.3 class AjaxFormAction - this doesn't do anything special. Please create your own ajax on FormAction instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77393 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 07:22:18 +00:00
parent 2b3889b640
commit a9370a26f9

View File

@ -1,38 +0,0 @@
<?php
/**
* Action button with Ajax/JavaScript overloading.
* @deprecated 2.3
* @package forms
* @subpackage actions
*/
class AjaxFormAction extends FormAction {
protected $ajaxAction;
/**
* Create a new action button.
* @param action The method to call when the button is clicked
* @param title The label on the button
* @param confirmation The message to display in the confirmation box?
* @param form The parent form, auto-set when the field is placed inside a form
*/
function __construct($action, $title = "", $ajaxAction = null, $form = null) {
$this->ajaxAction = $ajaxAction ? $ajaxAction : $action;
parent::__construct($action, $title, $form);
}
function Field() {
return $this->createTag('input', array(
'class' => "ajaxAction-$this->ajaxAction action",
'id' => $this->id(),
'type' => 'submit',
'value' => $this->title,
'tabindex' => $this->getTabIndex()
));
}
function Title() {
return false;
}
}
?>