Show if partner is online
This commit is contained in:

committed by
Sebastian Serth

parent
97764bd02e
commit
056a8e5107
@ -1044,6 +1044,17 @@ var CodeOceanEditor = {
|
||||
delta_data.text === last_delta.text;
|
||||
},
|
||||
|
||||
showPartnersConnectionStatus: function (status, username) {
|
||||
switch(status) {
|
||||
case 'connected':
|
||||
$('#pg_session').text(I18n.t('exercises.editor.is_online', {name: username}));
|
||||
break;
|
||||
case 'disconnected':
|
||||
$('#pg_session').text(I18n.t('exercises.editor.is_offline', {name: username}));
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
initializeEverything: function () {
|
||||
CodeOceanEditor.editors = [];
|
||||
this.initializeRegexes();
|
||||
|
@ -3,7 +3,7 @@ CodeOceanEditorSubmissions = {
|
||||
|
||||
AUTOSAVE_INTERVAL: 15 * 1000,
|
||||
autosaveTimer: null,
|
||||
autosaveLabel: "#statusbar span",
|
||||
autosaveLabel: "#statusbar #autosave",
|
||||
|
||||
/**
|
||||
* Submission-Creation
|
||||
|
Reference in New Issue
Block a user