File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
BlogEngine/BlogEngine.NET/admin/app/custom Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 179
179
} ) ;
180
180
}
181
181
182
+ $scope . upgradePackage = function ( pkgId ) {
183
+ spinOn ( ) ;
184
+ dataService . updateItem ( "/api/packages/uninstall/" + pkgId , pkgId )
185
+ . success ( function ( data ) {
186
+ $scope . installPackage ( ) ;
187
+ } )
188
+ . error ( function ( ) {
189
+ toastr . error ( $rootScope . lbl . failed ) ;
190
+ spinOff ( ) ;
191
+ } ) ;
192
+ }
193
+
182
194
$scope . load ( ) ;
183
195
184
196
$ ( document ) . ready ( function ( ) {
Original file line number Diff line number Diff line change 159
159
} ) ;
160
160
}
161
161
162
+ $scope . upgradePackage = function ( pkgId ) {
163
+ spinOn ( ) ;
164
+ dataService . updateItem ( "/api/packages/uninstall/" + pkgId , pkgId )
165
+ . success ( function ( data ) {
166
+ $scope . installPackage ( pkgId ) ;
167
+ } )
168
+ . error ( function ( ) {
169
+ toastr . error ( $rootScope . lbl . failed ) ;
170
+ spinOff ( ) ;
171
+ } ) ;
172
+ }
173
+
162
174
$scope . removeEmptyReviews = function ( ) {
163
175
if ( $scope . package . Extra != null && $scope . package . Extra . Reviews != null ) {
164
176
var reviews = [ ] ;
You can’t perform that action at this time.
0 commit comments