Skip to content

Commit 4550933

Browse files
committed
add changes in courseware js - export all necessary modules for externally added blocks
1 parent a54a42a commit 4550933

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

assets/js/courseware.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import $ from 'jquery'
33
import Backbone from 'backbone'
44
import helper from './url'
55
import BlockModel from './block_model'
6+
import block_types from './block_types';
7+
import AuthorView from 'js/author_view'
8+
import StudentView from 'js/student_view'
69

710
import '../less/courseware.less'
811

@@ -31,7 +34,6 @@ import 'ImageMapBlock/js/ImageMapBlock'
3134
import 'InteractiveVideoBlock/js/InteractiveVideoBlock'
3235
import 'KeyPointBlock/js/KeyPointBlock'
3336
import 'LinkBlock/js/LinkBlock'
34-
import 'OpenCastBlock/js/OpenCastBlock'
3537
import 'PdfBlock/js/PdfBlock'
3638
import 'PostBlock/js/PostBlock'
3739
import 'ScrollyBlock/js/ScrollyBlock'
@@ -103,3 +105,5 @@ function patchBackbone() {
103105
return (xhr !== false) ? xhr : Promise.reject(new Error('ModelError'));
104106
};
105107
}
108+
109+
export {$, Backbone, AuthorView, StudentView, helper, block_types };

0 commit comments

Comments
 (0)