       ngModel.$render()
 
     ngModel.$parsers.push (viewValue) ->
-      return viewValue + ".0"  if viewValue.indexOf(".") is -1  if angular.isString(viewValue) and numRegExp.test(viewValue)
+      return viewValue + ".0"  if viewValue.indexOf(".") == -1  if angular.isString(viewValue) and numRegExp.test(viewValue)
       viewValue
 
 

        url: "/admin/products/bulk_update"
        data: productsToSubmit
      ).success((data) ->
        if angular.toJson($scope.products) is angular.toJson(data)
          $scope.resetProducts data
          $scope.displaySuccess()
        else



    $scope.editWarn = (product, variant) ->
      if ($scope.dirtyProductCount() > 0 and confirm("Unsaved changes will be lost. Continue anyway?")) or ($scope.dirtyProductCount() == 0)
        window.location = "/admin/products/" + product.permalink_live + ((if variant then "/variants/" + variant.id else "")) + "/edit"


    $scope.deleteProduct = (product) ->
