We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a712a83 commit 35b2341Copy full SHA for 35b2341
www/js/modules/recipe/controllers/submit.recipe.controller.js
@@ -66,8 +66,10 @@ define(function () {
66
$scope.$watchCollection(function(){
67
return $scope.model;
68
}, function(newVal, oldVal){
69
- if(newVal && oldVal && !$.isEmptyObject(newVal) && !$.isEmptyObject(oldVal) && oldVal != newVal) {
+ if(newVal && oldVal && !$.isEmptyObject(newVal) && !$.isEmptyObject(oldVal) && JSON.stringify(oldVal) != JSON.stringify(newVal)) {
70
$scope.isModified = true;
71
+ } else {
72
+ $scope.isModified = false;
73
}
74
});
75
0 commit comments