From cc1bf3edb5b043d47ab5ffb9b863fc0113ab2179 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 2 Oct 2014 17:15:21 -0400 Subject: [PATCH] CiviCase form button cleanup --- CRM/Case/Form/EditClient.php | 8 ++++---- templates/CRM/Case/Form/CaseView.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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()); } -- 2.25.1