Open options-edit popup in a smaller dialog
authorColeman Watts <coleman@civicrm.org>
Wed, 6 Aug 2014 12:57:08 +0000 (13:57 +0100)
committerColeman Watts <coleman@civicrm.org>
Wed, 6 Aug 2014 12:57:08 +0000 (13:57 +0100)
CRM/Core/Form/Renderer.php

index 3a75049e670669f0e3a52366e6bcadb791512948..46a25561d0e53821b4797f216d23662036b7497c 100644 (file)
@@ -298,7 +298,7 @@ class CRM_Core_Form_Renderer extends HTML_QuickForm_Renderer_ArraySmarty {
       $path = $field->getAttribute('data-option-edit-path');
       // NOTE: If we ever needed to support arguments in this link other than reset=1 we could split $path here if it contains a ?
       $url = CRM_Utils_System::url($path, 'reset=1');
-      $el['html'] .= ' <a href="' . $url . '" class="crm-option-edit-link crm-hover-button" target="_blank" title="' . ts('Edit Options') . '" data-option-edit-path="' . $path . '"><span class="icon edit-icon"></span></a>';
+      $el['html'] .= ' <a href="' . $url . '" class="crm-option-edit-link medium-popup crm-hover-button" target="_blank" title="' . ts('Edit Options') . '" data-option-edit-path="' . $path . '"><span class="icon edit-icon"></span></a>';
     }
   }