Exemple #1
0
 /**
  * @param array $el
  * @param HTML_QuickForm_element $field
  */
 public function appendUnselectButton(&$el, $field)
 {
     // Initially hide if not needed
     // Note: visibility:hidden prevents layout jumping around unlike display:none
     $display = $field->getValue() !== NULL ? '' : ' style="visibility:hidden;"';
     $el['html'] .= ' <a href="#" class="crm-hover-button crm-clear-link"' . $display . ' title="' . ts('Clear') . '"><span class="icon ui-icon-close"></span></a>';
 }