Browse Source

Check code value when country was selected. Fix #650

master
ArtemFitiskin 10 years ago committed by a.fitiskin
parent
commit
75e4bbe6a7
  1. 1
      app/js/controllers.js
  2. 6
      app/js/directives.js

1
app/js/controllers.js

@ -118,6 +118,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -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

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

Loading…
Cancel
Save