GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#661)
by Jesus
08:29 queued 04:01
created

app/assets/javascripts/recording.js   A

Complexity

Total Complexity 4
Complexity/F 1.33

Size

Lines of Code 24
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 24
rs 10
wmc 4
eloc 16
mnd 1
bc 1
fnc 3
bpm 0.3333
cpm 1.3333
noi 0
1
// BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
2
//
3
// Copyright (c) 2018 BigBlueButton Inc. and by respective authors (see below).
4
//
5
// This program is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU Lesser General Public License as published by the Free Software
7
// Foundation; either version 3.0 of the License, or (at your option) any later
8
// version.
9
//
10
// BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
11
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
// PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
13
//
14
// You should have received a copy of the GNU Lesser General Public License along
15
// with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
16
17
// Handle changing of settings tabs.
18
$(document).on('turbolinks:load', function(){
19
  var controller = $("body").data('controller');
20
  var action = $("body").data('action');
21
22
  if (controller == "rooms" && action == "show" 
23
      || controller == "rooms" && action == "update" 
24
      || controller == "users" && action == "recordings" 
25
      || controller == "admins" && action == "server_recordings"){
26
    // Handle recording emails.
27
    $('.email-link').each(function(){
28
      $(this).click(function(){
29
        var subject = $(".username").text() + " " + t('room.mailer.subject');
30
        var body =  t('room.mailer.body') + "\n\n" + $(this).attr("data-pres-link");
31
        var autogenerated = "\n\n" + t('room.mailer.autogenerated') + "\n";
32
        var footer = t('room.mailer.footer');
33
34
        var url = "mailto:?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body) + encodeURIComponent(autogenerated) + encodeURIComponent(footer);
35
        var win = window.open(url, '_blank');
36
37
        win.focus();
38
      });
39
    });
40
  }
41
});