CRM-15789 - Fix button display in popups
authorColeman Watts <coleman@civicrm.org>
Thu, 8 Jan 2015 18:37:58 +0000 (13:37 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 8 Jan 2015 19:39:31 +0000 (14:39 -0500)
js/crm.ajax.js

index 5b02ef01372172942c66195502f11ac9c7e63cc8..0743d99aa09a59775d87368475ed81e30a44d716 100644 (file)
             added.push(identifier);
           }
           // display:none causes the form to not submit when pressing "enter"
-          $el.parents(buttonContainers).css({height: 0, padding: 0, margin: 0, overflow: 'hidden'});
+          $el.parents(buttonContainers).css({height: 0, padding: 0, margin: 0, overflow: 'hidden'}).find('.crm-button-icon').hide();
         });
         $el.dialog('option', 'buttons', buttons);
       }