CiviCase form button cleanup
authorColeman Watts <coleman@civicrm.org>
Thu, 2 Oct 2014 21:15:21 +0000 (17:15 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 2 Oct 2014 21:15:21 +0000 (17:15 -0400)
CRM/Case/Form/EditClient.php
templates/CRM/Case/Form/CaseView.js

index 5b5da5c94a242c17a065af2855d2e923325ad74b..f1663b6abc54433b24c06122642094e40290dfdd 100644 (file)
@@ -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
index 34e74f1c95ff7dfdd4350e3a5e210d514fc76193..eed398cd85499ad5b1c44ac12bcd3e40131f3990 100644 (file)
           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());
           }