Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $scope.dtInstance = {};
  2.  
  3. $scope.reloadData = function() {
  4. var resetPaging = true;
  5. $scope.dtInstance.rerender();
  6.  
  7. };
  8.  
  9. $scope.removeCompany = function (companyId) {
  10. if ($window.confirm("Are you sure !")) {//start if click on ok
  11.  
  12. companyFactory.companyInfo(companyId, 'DELETE')
  13. .success(function (res){
  14. $scope.reloadData();
  15.  
  16. notify({
  17. message:'Company has deleted!',
  18. classes: 'alert-danger',
  19. templateUrl: 'views/common/notify.html'
  20. });
  21. })
  22. .error(function (err){
  23. });
  24. }
  25.  
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement