From f84151fdca55a7b2f92d3ccec3cf20aa1fa47bda Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 18 Nov 2013 16:35:24 -0800 Subject: [PATCH] CRM-13783 - ProfileBuilder - Improve title, themeing of popup --- CRM/Custom/Form/Field.php | 3 ++- css/crm.designer.css | 4 ++++ js/Common.js | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CRM/Custom/Form/Field.php b/CRM/Custom/Form/Field.php index 2e34075d60..7966ebdd5d 100644 --- a/CRM/Custom/Form/Field.php +++ b/CRM/Custom/Form/Field.php @@ -272,7 +272,7 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { public function buildQuickForm() { if ($this->_gid) { $this->_title = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_gid, 'title'); - CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Custom Fields')); + CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('Add Field'))); } // lets trim all the whitespace @@ -983,6 +983,7 @@ SELECT id } $customField = CRM_Core_BAO_CustomField::create($params); + $this->_id = $customField->id; // reset the cache CRM_Core_BAO_Cache::deleteGroup('contact fields'); diff --git a/css/crm.designer.css b/css/crm.designer.css index 894f0135bd..7d4db89f0f 100644 --- a/css/crm.designer.css +++ b/css/crm.designer.css @@ -21,6 +21,10 @@ margin: 0.5em 0; } +.crm-designer-palette-search input { + max-width: 75%; +} + .crm-designer-toolbar .ui-resizable-w { border-left: 4px dotted #BFBFBF; cursor: ew-resize; diff --git a/js/Common.js b/js/Common.js index de2861b853..60738a3489 100644 --- a/js/Common.js +++ b/js/Common.js @@ -827,7 +827,8 @@ CRM.validate = CRM.validate || { target: '#crm-ajax-dialog', dialog: { modal: true, - minWidth: 600, + width: '65%', + height: parseInt($(window).height() * .75), close: function() { $(this).dialog('destroy'); $(this).remove(); -- 2.25.1