diff --git a/app/assets/javascripts/landing.js b/app/assets/javascripts/landing.js index 5c9156f1..eb38db9d 100644 --- a/app/assets/javascripts/landing.js +++ b/app/assets/javascripts/landing.js @@ -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 = { diff --git a/app/assets/javascripts/meeting.coffee b/app/assets/javascripts/meeting.coffee index 9b13a1a4..b0a6e193 100644 --- a/app/assets/javascripts/meeting.coffee +++ b/app/assets/javascripts/meeting.coffee @@ -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 diff --git a/app/views/landing/_invite_join.html.erb b/app/views/landing/_invite_join.html.erb new file mode 100644 index 00000000..e143c74a --- /dev/null +++ b/app/views/landing/_invite_join.html.erb @@ -0,0 +1,13 @@ +
diff --git a/app/views/landing/_previously_joined.html.erb b/app/views/landing/_previously_joined.html.erb new file mode 100644 index 00000000..3270589b --- /dev/null +++ b/app/views/landing/_previously_joined.html.erb @@ -0,0 +1,6 @@ + diff --git a/app/views/landing/index.html.erb b/app/views/landing/index.html.erb index 3bd3f593..126a4493 100644 --- a/app/views/landing/index.html.erb +++ b/app/views/landing/index.html.erb @@ -28,33 +28,11 @@ with BigBlueButton; if not, see