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
|
|
|
}); |