This file is indexed.

/usr/share/civicrm/js/crm.multilingual.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
20
21
22
23
24
25
26
// http://civicrm.org/licensing
// JS needed for multilingual installations
CRM.$(function($) {
  // This is partially redundant with what the CRM.popup function would do,
  // with a small amount of added functionality,
  // and the difference that this loads unconditionally regardless of ajaxPopupsEnabled setting
  $('body').on('click', 'a.crm-multilingual-edit-button', function(e) {
    var $el = $(this),
      $form = $el.closest('form'),
      $field = $('#' + $el.data('field'), $form);

    CRM.loadForm($el.attr('href'), {
      dialog: {width: '50%', height: '50%'}
    })
      // Sync the primary language field with what the user has entered on the main form
      .on('crmFormLoad', function() {
        $('.default-lang', this).val($field.val());
      })
      .on('crmFormSubmit', function() {
        // Sync the primary language field with what the user has entered in the popup
        $field.val($('.default-lang', this).val());
        $el.trigger('crmPopupFormSuccess');
      });
    e.preventDefault();
  });
});