X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUF%2FForm%2FField.php;h=997962cd40b1f77cd35c80b4f1167b66310712b0;hb=95c42d8be0834773e0b606a1c79471f4733060ab;hp=4bfcb214af81150eddebdc9b685c6a948d8218f7;hpb=93317f78c6697070f432fe4bdaf3769d2fdf3e93;p=civicrm-core.git diff --git a/CRM/UF/Form/Field.php b/CRM/UF/Form/Field.php index 4bfcb214af..997962cd40 100644 --- a/CRM/UF/Form/Field.php +++ b/CRM/UF/Form/Field.php @@ -467,8 +467,11 @@ class CRM_UF_Form_Field extends CRM_Core_Form { // if view mode pls freeze it with the done button. if ($this->_action & CRM_Core_Action::VIEW) { $this->freeze(); - $this->addElement('button', 'done', ts('Done'), - ['onclick' => "location.href='civicrm/admin/uf/group/field?reset=1&action=browse&gid=" . $this->_gid . "'"] + $this->addElement('xbutton', 'done', ts('Done'), + [ + 'type' => 'button', + 'onclick' => "location.href='civicrm/admin/uf/group/field?reset=1&action=browse&gid=" . $this->_gid . "'", + ] ); }