Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.dtInstance = {};
- $scope.reloadData = function() {
- var resetPaging = true;
- $scope.dtInstance.rerender();
- };
- $scope.removeCompany = function (companyId) {
- if ($window.confirm("Are you sure !")) {//start if click on ok
- companyFactory.companyInfo(companyId, 'DELETE')
- .success(function (res){
- $scope.reloadData();
- notify({
- message:'Company has deleted!',
- classes: 'alert-danger',
- templateUrl: 'views/common/notify.html'
- });
- })
- .error(function (err){
- });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement