Skip to content

Commit

Permalink
Merge branch 'pr/651'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhukov committed Jan 15, 2015
2 parents 3fdb5ab + b9161b7 commit 0eb6dca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
updateCountry();
}
$scope.$broadcast('country_selected');
$scope.$broadcast('value_updated');
}

function updateCountry () {
Expand Down
8 changes: 6 additions & 2 deletions app/js/directives.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2525,14 +2525,18 @@ angular.module('myApp.directives', ['myApp.filters'])
});

if (!isDisabled) {
input.on('blur focus', function (e) {
input.on('blur focus change', function (e) {
focused = e.type == 'focus';
element.toggleClass('md-input-focused', focused);
updateHasValueClass();
});
}


$scope.$on('value_updated', function (event, args) {
setZeroTimeout(function () {
updateHasValueClass();
});
});
};
})

Expand Down

0 comments on commit 0eb6dca

Please sign in to comment.