CRM-19096: Parent group arrow mis-aligned
authordeb.monish <monish.deb@webaccessglobal.com>
Mon, 18 Jul 2016 09:53:19 +0000 (15:23 +0530)
committerdeb.monish <monish.deb@webaccessglobal.com>
Mon, 18 Jul 2016 09:53:19 +0000 (15:23 +0530)
templates/CRM/Group/Form/Search.tpl

index 26107935fc79b4def2752073d4b9b1658ae622a2..db91747d96b24d7831733b3a261451bac4f9cd87 100644 (file)
         }
       },
       "language": {
-        "zeroRecords": ZeroRecordText 
+        "zeroRecords": ZeroRecordText
       },
       "drawCallback": function(settings) {
         //Add data attributes to cells
         //Reload table after draw
         $(settings.nTable).trigger('crmLoad');
         if (parentsOnly) {
-          $('tbody tr.crm-group-parent', settings.nTable).each( function() {
-            $(this).find('td:first').prepend('{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}');
+          $('tbody tr.crm-group-parent td:first', settings.nTable).each( function() {
+            $(this).prepend('{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}').find('div').css({'display': 'inline'});
           });
         }
       }
         // child rows for this parent have already been retrieved so just show them
         $('.parent_is_' + parent_id ).show();
       } else {
-        //FIXME Is it possible to replace all this with a datatables call? 
+        //FIXME Is it possible to replace all this with a datatables call?
         $.ajax( {
             "dataType": 'json',
             "url": {/literal}'{crmURL p="civicrm/ajax/grouplist" h=0 q="snippet=4"}'{literal},