Check code value when country was selected. Fix #650

This commit is contained in:
ArtemFitiskin 2015-01-12 12:27:33 +03:00 committed by a.fitiskin
parent 7412a02ef1
commit 75e4bbe6a7
2 changed files with 6 additions and 1 deletions

View File

@ -118,6 +118,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
updateCountry();
}
$scope.$broadcast('country_selected');
$scope.$broadcast('value_updated');
}
function updateCountry () {

6
app/js/directives.js Normal file → Executable file
View File

@ -2532,7 +2532,11 @@ angular.module('myApp.directives', ['myApp.filters'])
});
}
$scope.$on("value_updated", function (event, args) {
setZeroTimeout(function () {
updateHasValueClass();
});
});
};
})