From 3adeed1fa0c3fd044e4ccac454829aa8361a260c Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 6 Dec 2013 11:11:19 +1100 Subject: [PATCH] Update attr name --- app/assets/javascripts/admin/bulk_product_update.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/bulk_product_update.js.coffee b/app/assets/javascripts/admin/bulk_product_update.js.coffee index 7cf3907c4d..6e3cb90382 100644 --- a/app/assets/javascripts/admin/bulk_product_update.js.coffee +++ b/app/assets/javascripts/admin/bulk_product_update.js.coffee @@ -23,7 +23,7 @@ productsApp.directive "ofnDecimal", -> productsApp.directive "ofnTrackProduct", -> require: "ngModel" link: (scope, element, attrs, ngModel) -> - property_name = attrs.ngTrackProduct + property_name = attrs.ofnTrackProduct ngModel.$parsers.push (viewValue) -> if ngModel.$dirty addDirtyProperty scope.dirtyProducts, scope.product.id, property_name, viewValue @@ -34,7 +34,7 @@ productsApp.directive "ofnTrackProduct", -> productsApp.directive "ofnTrackVariant", -> require: "ngModel" link: (scope, element, attrs, ngModel) -> - property_name = attrs.ngTrackVariant + property_name = attrs.ofnTrackVariant ngModel.$parsers.push (viewValue) -> dirtyVariants = {} dirtyVariants = scope.dirtyProducts[scope.product.id].variants if scope.dirtyProducts.hasOwnProperty(scope.product.id) and scope.dirtyProducts[scope.product.id].hasOwnProperty("variants")