mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
add locale hack back in to scheduler date picker directive
This commit is contained in:
parent
2a4fa0ed9d
commit
aad4da3c39
@ -20,6 +20,11 @@ export default
|
||||
},
|
||||
templateUrl: templateUrl('system-tracking/date-picker/date-picker'),
|
||||
link: function(scope, element, attrs) {
|
||||
var lang = window.navigator.languages ?
|
||||
window.navigator.languages[0] :
|
||||
(window.navigator.language ||
|
||||
window.navigator.userLanguage);
|
||||
moment.locale(lang);
|
||||
// We need to make sure this _never_ recurses, which sometimes happens
|
||||
// with two-way binding.
|
||||
var mustUpdateValue = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user