This file is indexed.

/usr/share/civicrm/js/crm.expandRow.js is in civicrm-common 4.7.1+dfsg-2ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
// http://civicrm.org/licensing
CRM.$(function($) {
  $('body')
    .off('.crmExpandRow')
    .on('click.crmExpandRow', 'a.crm-expand-row', function(e) {
      var $row = $(this).closest('tr');
      if ($(this).hasClass('expanded')) {
        $row.next('.crm-child-row').children('td').children('div.crm-ajax-container')
          .slideUp('fast', function() {$(this).closest('.crm-child-row').remove();});
      } else {
        var count = $('td', $row).length,
          $newRow = $('<tr class="crm-child-row"><td colspan="' + count + '"><div></div></td></tr>')
            .insertAfter($row);
        CRM.loadPage(this.href, {target: $('div', $newRow).animate({minHeight: '3em'}, 'fast')});
      }
      $(this).toggleClass('expanded');
      e.preventDefault();
    });
});