forked from External/greenlight
URI encode meeting name and only show invite/join when a name is entered
This commit is contained in:
@ -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 = {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user