Merge pull request #61 from zach-chai/updates

remember name for logged out users and other ui updates
This commit is contained in:
Zachary Chai 2016-12-01 11:19:48 -05:00 committed by GitHub
commit 05a7830cc3
4 changed files with 11 additions and 2 deletions

View File

@ -30,6 +30,10 @@
var init = function() {
Meeting.clear();
var nameInput = $('.meeting-user-name');
if (!nameInput.val()) {
nameInput.val(localStorage.getItem('lastJoinedName'));
}
// setup event handlers
$('.center-panel-wrapper').on ('click', '.meeting-join', function (event) {

View File

@ -58,6 +58,10 @@ class @Meeting
getJoinMeetingResponse: ->
return $.get @getURL() + "/join?name=" + @name, (data) =>
if data.messageKey == 'ok' && @type == 'meetings'
# update name used to join meeting
localStorage.setItem('lastJoinedName', @getName())
# update previously joined meetings on client
try
joinedMeetings = localStorage.getItem('joinedMeetings') || ''
joinedMeetings = joinedMeetings.split(',')

View File

@ -29,13 +29,13 @@ class @Recordings
info: false,
order: [[ 0, "desc" ]],
language: {
emptyTable: '<h3>'+I18n.no_recordings+'</h3>',
emptyTable: '<h3>'+I18n.no_recordings_yet+'</h3>',
zeroRecords: '<h3>'+I18n.no_recordings+'</h3>'
},
columns: [
{ data: "start_time" },
{ data: "previews", orderable: false },
{ data: "duration" },
{ data: "duration", orderable: false },
{ data: "playbacks", orderable: false },
{ data: "published", visible: false },
{ data: "id", orderable: false }

View File

@ -44,6 +44,7 @@ en-US:
meeting_ended: Meeting was ended
meeting_started: Meeting was started
no_recordings: No Recordings
no_recordings_yet: No Recordings (Yet!)
publish_recording: Publish recording
recording_deleted: Recording was deleted
recording_published: Recording was published