Synchronize resetCode for pair programming
This commit is contained in:

committed by
Sebastian Serth

parent
cc90861bd5
commit
f37ba34389
@ -63,6 +63,7 @@ $(document).on('turbolinks:load', function () {
|
||||
}
|
||||
break;
|
||||
case 'current_content':
|
||||
case 'reset_content':
|
||||
if (is_other_session(data.session_id)) {
|
||||
CodeOceanEditor.setEditorContent(data);
|
||||
}
|
||||
@ -70,6 +71,10 @@ $(document).on('turbolinks:load', function () {
|
||||
}
|
||||
},
|
||||
|
||||
reset_content(content) {
|
||||
this.perform('reset_content', content);
|
||||
},
|
||||
|
||||
editor_change(delta, active_file) {
|
||||
const message = {session_id: session_id, active_file: active_file, delta: delta}
|
||||
this.perform('editor_change', message);
|
||||
|
Reference in New Issue
Block a user