function hide(name){
        switch(name){
          case "Accounts receivable":
                angular.element("#AccRecPos").css('background','#40bf40');
                angular.element("#AccRecBox").css('display','none');
                $scope.revealAccRec= true;
                break;

          case "Accounts payable":
                angular.element("#AccPayPos").css('background','#40bf40');
                angular.element("#AccPayBox").css('display','none');
                $scope.revealAccountsPay= true;
                break;

          case "Advances received (and progress payments)":
                angular.element("#AdvRecPos").css('background','#40bf40');
                angular.element("#AdvRecBox").css('display','none');
                $scope.revealAdvanceRec= true;
                break;

          case "Inventory":
                angular.element("#InventoryPos").css('background','#40bf40');
                angular.element("#inventoryBox").css('display','none');
                $scope.revealInventory= true;
                break;
        }
    }
//Function to hide the divs when dragged to right empty position
Function to hide the divs when dragged to right empty position
Function to hide the divs when dragged to right empty position
function hide(name){
        switch(name){
          case "Accounts receivable":
                angular.element("#AccRecPos").css('background','#40bf40');
                angular.element("#AccRecBox").css('display','none');
                $scope.revealAccRec= true;
                break;
          case "Accounts payable":
                angular.element("#AccPayPos").css('background','#40bf40');
                angular.element("#AccPayBox").css('display','none');
                $scope.revealAccountsPay= true;
                break;
          case "Advances received (and progress payments)":
                angular.element("#AdvRecPos").css('background','#40bf40');
                angular.element("#AdvRecBox").css('display','none');
                $scope.revealAdvanceRec= true;
                break;
          case "Inventory":
                angular.element("#InventoryPos").css('background','#40bf40');
                angular.element("#inventoryBox").css('display','none');
                $scope.revealInventory= true;
                break;
        }
    }
function hide ( name ) { switch ( name ) { case "Accounts receivable" : angular . element ( "#AccRecPos" ) . css ( 'background' , '#40bf40' ) ; angular . element ( "#AccRecBox" ) . css ( 'display' , 'none' ) ; $scope . revealAccRec = true ; break ; case "Accounts payable" : angular . element ( "#AccPayPos" ) . css ( 'background' , '#40bf40' ) ; angular . element ( "#AccPayBox" ) . css ( 'display' , 'none' ) ; $scope . revealAccountsPay = true ; break ; case "Advances received (and progress payments)" : angular . element ( "#AdvRecPos" ) . css ( 'background' , '#40bf40' ) ; angular . element ( "#AdvRecBox" ) . css ( 'display' , 'none' ) ; $scope . revealAdvanceRec = true ; break ; case "Inventory" : angular . element ( "#InventoryPos" ) . css ( 'background' , '#40bf40' ) ; angular . element ( "#inventoryBox" ) . css ( 'display' , 'none' ) ; $scope . revealInventory = true ; break ; } }
Function to hide the divs when dragged to right empty position
Function to hide the divs when dragged to right empty position