MINOR Setting the url where the javascript should call by ajax to add a field to the user defined form

This commit is contained in:
Stig Lindqvist 2012-05-07 17:10:05 +12:00
parent 368211c7e5
commit d9ff70595f

View File

@ -19,6 +19,7 @@ class FieldEditor extends FormField {
* @return String
*/
public function FieldHolder($properties = array()) {
$this->setAttribute('data-add-url', '\''.Controller::join_links($this->Link('addfield').'\''));
return $this->renderWith("FieldEditor");
}