File tree 2 files changed +6
-5
lines changed
BlogEngine/BlogEngine.NET/admin/app/settings 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,17 @@ <h4> {{lbl.securitySettings}}</h4>
46
46
< div ng-if ="settings.AllowServerToDownloadRemoteFiles " class ="form-group ">
47
47
< div class ="form-group ">
48
48
< label class ="control-label " for ="txtRemoteFileDownloadTimeout "> {{lbl.remoteTimeout}}</ label >
49
- < input type ="text " class =" form-control " id ="txtRemoteFileDownloadTimeout " name ="txtRemoteFileDownloadTimeout " data-ng-model ="settings.RemoteFileDownloadTimeout " />
49
+ < input type ="text " class ="form-control " id ="txtRemoteFileDownloadTimeout " name ="txtRemoteFileDownloadTimeout " data-ng-model ="settings.RemoteFileDownloadTimeout " />
50
50
</ div >
51
51
< div class ="form-group ">
52
52
< label class ="control-label " for ="txtRemoteMaxFileSize "> {{lbl.maximumRemoteFileSize}}</ label >
53
- < input type ="text " class =" form-control " id ="txtRemoteMaxFileSize " name ="txtRemoteMaxFileSize " data-ng-model ="settings.RemoteMaxFileSize " />
53
+ < input type ="text " class ="form-control " id ="txtRemoteMaxFileSize " name ="txtRemoteMaxFileSize " data-ng-model ="settings.RemoteMaxFileSize " />
54
54
</ div >
55
55
</ div >
56
56
< h4 > {{lbl.tools}}</ h4 >
57
57
< div class ="form-group ">
58
58
< p > {{lbl.selectSavedBlogMlFle}}</ p >
59
- < button class ="btn btn-default btn-input-file next "> {{lbl.import}}</ button >
59
+ < button type =" button " class ="btn btn-default btn-input-file next "> {{lbl.import}}</ button >
60
60
< input type ="file " class ="input-file-hidden " onchange ="angular.element(this).scope().uploadFile(this.files) " />
61
61
</ div >
62
62
< div class ="form-group ">
Original file line number Diff line number Diff line change 82
82
}
83
83
84
84
$scope . uploadFile = function ( files ) {
85
+ spinOn ( ) ;
85
86
var fd = new FormData ( ) ;
86
87
fd . append ( "file" , files [ 0 ] ) ;
87
-
88
88
dataService . uploadFile ( "/api/upload?action=import" , fd )
89
89
. success ( function ( data ) {
90
90
toastr . success ( $rootScope . lbl . importedFromBlogML ) ;
91
+ spinOff ( ) ;
91
92
} )
92
- . error ( function ( ) { toastr . error ( $rootScope . lbl . importFailed ) ; } ) ;
93
+ . error ( function ( ) { toastr . error ( $rootScope . lbl . importFailed ) ; spinOff ( ) ; } ) ;
93
94
}
94
95
95
96
$scope . testEmail = function ( ) {
You can’t perform that action at this time.
0 commit comments