URI encode meeting name and only show invite/join when a name is entered

This commit is contained in:
Zachary Chai 2017-01-26 09:34:05 -05:00
parent e3e154b99c
commit 540ab7d369
3 changed files with 8 additions and 3 deletions

View File

@ -140,7 +140,12 @@
$(".page-wrapper.meetings").data('id', newId);
$('.meeting-url').val(Meeting.getInstance().getURL());
$('.join-meeting-title').html(I18n.join_title.replace(/%{id}/, newId));
})
if (newId === '') {
$('.invite-join-wrapper').addClass('hidden');
} else {
$('.invite-join-wrapper').removeClass('hidden');
}
});
// enable tooltips
var options = {

View File

@ -36,7 +36,7 @@ class @Meeting
_meetingInstance = null
@buildMeetingURL: (id, type) ->
return @buildFullDomainURL() + '/' + type + '/' + id
return @buildFullDomainURL() + '/' + type + '/' + encodeURIComponent(id)
@buildFullDomainURL: ->
url = location.protocol + '//' + location.hostname

View File

@ -36,7 +36,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
</div>
</div>
<div class="row invite-join-wrapper">
<div class="row invite-join-wrapper hidden">
<div class="col-xs-6">
<div class="title-wrapper text-center">
<div class="title-invite">