|
|
@ -521,8 +521,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$http.post('/sys/partners', $scope.partner).then(function (resp) {
|
|
|
|
$http.post('/sys/partners', $scope.partner).then(function (resp) {
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Register new partner successfully', type: 'success'});
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Register new partner successfully', type: 'success'});
|
|
|
|
$scope.updateMerchantLocation();
|
|
|
|
$scope.updateMerchantLocation();
|
|
|
|
$scope.loadPartners();
|
|
|
|
// $scope.loadPartners();
|
|
|
|
$state.go('^.detail', {clientMoniker: resp.data.client_moniker})
|
|
|
|
$state.go('partners.detail', {clientMoniker: resp.data.client_moniker})
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
});
|
|
|
|
});
|
|
|
|