| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
$contactTypes = array('Contact', 'Individual', 'Household', 'Organization');
$this->assign('contactTypes', json_encode($contactTypes));
- $sel1 = array("" => "- select -") + CRM_Core_SelectValues::customGroupExtends();
+ $sel1 = array("" => ts("- select -")) + CRM_Core_SelectValues::customGroupExtends();
$sel2 = array();
$activityType = CRM_Core_PseudoConstant::activityType(FALSE, TRUE, FALSE, 'label', TRUE);
$contactSubTypes[$key] = $key;
}
$sel2['Contact'] = array(
- "" => "-- Any --",
+ "" => ("- Any -"),
) + $contactSubTypes;
}
else {
),
);
if (!$this->_isGroupEmpty && !empty($this->_subtypes)) {
- $buttons[0]['js'] = array('onclick' => "return warnDataLoss()");
+ $buttons[0]['class'] = 'crm-warnDataLoss';
}
$this->addButtons($buttons);
- // views are implemented as frozen form
+ // TODO: Is this condition ever true? Can this code be removed?
if ($this->_action & CRM_Core_Action::VIEW) {
$this->freeze();
$this->addElement('button', 'done', ts('Done'), array('onclick' => "location.href='civicrm/admin/custom/group?reset=1&action=browse'"));
}
return $relName;
}
+
}