Fix icons in popup buttons
authorColeman Watts <coleman@civicrm.org>
Thu, 3 Dec 2015 19:26:27 +0000 (14:26 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 3 Dec 2015 19:26:27 +0000 (14:26 -0500)
js/crm.ajax.js

index a1284a765c101bc2372bd872a0912660dff9b553..91565ef6030ff35b0dbb79c59ad9cfd51964f473 100644 (file)
             label = $el.is('input') ? $el.attr('value') : $el.text(),
             identifier = $el.attr('name') || $el.attr('href');
           if (!identifier || identifier === '#' || $.inArray(identifier, added) < 0) {
-            var $icon = $el.find('.icon'),
+            var $icon = $el.find('.icon, .crm-i'),
               button = {'data-identifier': identifier, text: label, click: function() {
                 $el[0].click();
               }};