| @@ -1,21 +1,23 @@ | ||
| 1 | -import courseTab from './profile/course-tab'; | |
| 2 | -import courseStatistics from './profile/statistic'; | |
| 3 | -import recoverOrder from './profile/order-recover'; | |
| 4 | -import profileCoverImage from './profile/cover-image'; | |
| 5 | -import profileAvatarImage from './profile/avatar'; | |
| 6 | -import profileQuizTab from './profile/quiz'; | |
| 7 | -import { ViewStudentsModal } from '../admin/courses/view-students-modal'; | |
| 8 | - | |
| 9 | -profileCoverImage(); | |
| 10 | -profileQuizTab(); | |
| 11 | -courseStatistics(); | |
| 12 | -recoverOrder(); | |
| 13 | -new ViewStudentsModal(); | |
| 14 | - | |
| 15 | -document.addEventListener( 'DOMContentLoaded', function( event ) { | |
| 16 | - courseTab(); | |
| 17 | -} ); | |
| 18 | - | |
| 19 | -if ( document.getElementById( 'learnpress-avatar-upload' ) ) { | |
| 20 | - profileAvatarImage(); | |
| 21 | -} | |
| 1 | +import courseTab from './profile/course-tab'; | |
| 2 | +import courseStatistics from './profile/statistic'; | |
| 3 | +import recoverOrder from './profile/order-recover'; | |
| 4 | +import profileCoverImage from './profile/cover-image'; | |
| 5 | +import profileAvatarImage from './profile/avatar'; | |
| 6 | +import profileQuizTab from './profile/quiz'; | |
| 7 | +import orderRefund from './profile/order-refund'; | |
| 8 | +import { ViewStudentsModal } from '../admin/courses/view-students-modal'; | |
| 9 | + | |
| 10 | +profileCoverImage(); | |
| 11 | +profileQuizTab(); | |
| 12 | +courseStatistics(); | |
| 13 | +recoverOrder(); | |
| 14 | +orderRefund(); | |
| 15 | +new ViewStudentsModal(); | |
| 16 | + | |
| 17 | +document.addEventListener( 'DOMContentLoaded', function( event ) { | |
| 18 | + courseTab(); | |
| 19 | +} ); | |
| 20 | + | |
| 21 | +if ( document.getElementById( 'learnpress-avatar-upload' ) ) { | |
| 22 | + profileAvatarImage(); | |
| 23 | +} | |