From: Coleman Watts Date: Thu, 2 Oct 2014 21:15:21 +0000 (-0400) Subject: CiviCase form button cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc1bf3edb5b043d47ab5ffb9b863fc0113ab2179;p=civicrm-core.git CiviCase form button cleanup --- diff --git a/CRM/Case/Form/EditClient.php b/CRM/Case/Form/EditClient.php index 5b5da5c94a..f1663b6abc 100644 --- a/CRM/Case/Form/EditClient.php +++ b/CRM/Case/Form/EditClient.php @@ -84,14 +84,14 @@ class CRM_Case_Form_EditClient extends CRM_Core_Form { public function buildQuickForm() { $this->addEntityRef('reassign_contact_id', ts('Select Contact'), array('create' => TRUE), TRUE); $this->addButtons(array( - array( - 'type' => 'cancel', - 'name' => ts('Cancel'), - ), array( 'type' => 'done', 'name' => ts('Reassign Case'), ), + array( + 'type' => 'cancel', + 'name' => ts('Cancel'), + ), )); // This form may change the url structure so should not submit via ajax diff --git a/templates/CRM/Case/Form/CaseView.js b/templates/CRM/Case/Form/CaseView.js index 34e74f1c95..eed398cd85 100644 --- a/templates/CRM/Case/Form/CaseView.js +++ b/templates/CRM/Case/Form/CaseView.js @@ -216,6 +216,7 @@ title: $(this).attr('title') || $(this).text(), message: detached[target], resizable: true, + options: {yes: ts('Save'), no: ts('Cancel')}, open: function() { miniForms[target].pre && miniForms[target].pre.call(this, $el.data()); }