public function buildQuickForm() {
if ($this->_gid) {
$this->_title = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_gid, 'title');
- CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Custom Fields'));
+ CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('Add Field')));
}
// lets trim all the whitespace
}
$customField = CRM_Core_BAO_CustomField::create($params);
+ $this->_id = $customField->id;
// reset the cache
CRM_Core_BAO_Cache::deleteGroup('contact fields');
target: '#crm-ajax-dialog',
dialog: {
modal: true,
- minWidth: 600,
+ width: '65%',
+ height: parseInt($(window).height() * .75),
close: function() {
$(this).dialog('destroy');
$(this).remove();