diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js
index a2cc45916..c15a6e9a0 100644
--- a/public/react/src/modules/courses/new/CoursesNew.js
+++ b/public/react/src/modules/courses/new/CoursesNew.js
@@ -48,6 +48,7 @@ class CoursesNew extends Component {
addonAfteronelenone:0,
addonAfteronelentwo:0,
bordebool:false,
+ smallspinning:false
}
}
componentDidMount() {
@@ -450,8 +451,10 @@ class CoursesNew extends Component {
// });
this.setState({
fetching: true,
- school: value
+ school: value,
+ smallspinning:true
})
+
this.getschool(value)
}
};
@@ -478,6 +481,7 @@ class CoursesNew extends Component {
};
getschool=(value)=>{
+
// this.props.form.setFieldsValue({
// school: value
// })
@@ -488,20 +492,27 @@ class CoursesNew extends Component {
}
}).then((result)=>{
if(result){
- if (result.data.status===0) {
- this.setState({
- searchlistscholl: result.data.school_names,
-
- })
- if(result.data.school_names.length!=0){
- this.setState({
- fetching: false
- })
- }
- }
+ if (result.data.status===0) {
+ this.setState({
+ searchlistscholl: result.data.school_names,
+ smallspinning:false
+ })
+ if(result.data.school_names.length!=0){
+ this.setState({
+ fetching: false,
+ })
+ }
+ }else{
+ this.setState({
+ smallspinning:false
+ })
+ }
}
}).catch((error)=>{
console.log(error)
+ this.setState({
+ smallspinning:false
+ })
})
}
showApplyForAddOrgModal = () => {
@@ -895,6 +906,9 @@ class CoursesNew extends Component {
>
)}
+
+