Merge branch 'pr/651'
This commit is contained in:
commit
0eb6dcafdf
@ -118,6 +118,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
updateCountry();
|
updateCountry();
|
||||||
}
|
}
|
||||||
$scope.$broadcast('country_selected');
|
$scope.$broadcast('country_selected');
|
||||||
|
$scope.$broadcast('value_updated');
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateCountry () {
|
function updateCountry () {
|
||||||
|
8
app/js/directives.js
Normal file → Executable file
8
app/js/directives.js
Normal file → Executable file
@ -2525,14 +2525,18 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!isDisabled) {
|
if (!isDisabled) {
|
||||||
input.on('blur focus', function (e) {
|
input.on('blur focus change', function (e) {
|
||||||
focused = e.type == 'focus';
|
focused = e.type == 'focus';
|
||||||
element.toggleClass('md-input-focused', focused);
|
element.toggleClass('md-input-focused', focused);
|
||||||
updateHasValueClass();
|
updateHasValueClass();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.$on('value_updated', function (event, args) {
|
||||||
|
setZeroTimeout(function () {
|
||||||
|
updateHasValueClass();
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user