File tree Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Expand file tree Collapse file tree 5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class AddPermissionForm extends Component {
173173 text : 'Permission Update Success!' ,
174174 title : '' ,
175175 type : 'success' ,
176- } , function ( ) {
176+ } ) . then ( function ( ) {
177177 window . location . assign ( '/data_release' ) ;
178178 } ) ;
179179 this . props . fetchData ( ) ;
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ class UploadFileForm extends Component {
203203 showCancelButton : true ,
204204 confirmButtonText : 'Yes, I am sure!' ,
205205 cancelButtonText : 'No, cancel it!' ,
206- } , ( isConfirm ) => {
206+ } ) . then ( ( isConfirm ) => {
207207 if ( isConfirm ) {
208208 this . uploadFile ( true ) ;
209209 }
@@ -224,7 +224,7 @@ class UploadFileForm extends Component {
224224 text : 'Upload Successful!' ,
225225 title : '' ,
226226 type : 'success' ,
227- } , function ( ) {
227+ } ) . then ( function ( ) {
228228 window . location . assign ( '/data_release' ) ;
229229 } ) ;
230230 this . props . fetchData ( ) ;
Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ $("#save-help").click(function(e) {
7373 cancelButtonText : "Close" ,
7474 closeOnConfirm : false ,
7575 closeOnCancel : true ,
76- } ,
77- function ( ) {
76+ } ) . then ( function ( ) {
7877 location . href = document . referrer ;
7978 } ) ;
8079 } ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class InstrumentUploadForm extends Component {
5151 swal . fire ( {
5252 title : 'Installation Successful!' ,
5353 type : 'success' ,
54- } , function ( ) {
54+ } ) . then ( function ( ) {
5555 window . location . assign ( loris . BaseURL + '/instrument_manager/' ) ;
5656 } ) ;
5757 }
@@ -63,7 +63,7 @@ class InstrumentUploadForm extends Component {
6363 title : 'Upload Successful!' ,
6464 type : 'success' ,
6565 text : data . message ,
66- } , function ( ) {
66+ } ) . then ( function ( ) {
6767 window . location . assign ( loris . BaseURL + '/instrument_manager/' ) ;
6868 } ) ;
6969 }
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ class MediaUploadForm extends Component {
261261 showCancelButton : true ,
262262 confirmButtonText : 'Yes, I am sure!' ,
263263 cancelButtonText : 'No, cancel it!' ,
264- } , function ( isConfirm ) {
264+ } ) . then ( function ( isConfirm ) {
265265 if ( isConfirm ) {
266266 this . uploadFile ( ) ;
267267 } else {
You can’t perform that action at this time.
0 commit comments