Applied to master. Thanks!
On 07/28/2016 05:18 AM, pkulkark(a)linux.vnet.ibm.com wrote:
From: Pooja Kulkarni <pkulkark(a)linux.vnet.ibm.com>
The Calender shown when clicking on the date field
in the Advanced search tab of user activity log,
should be displayed as per the locale selected.
Signed-off-by: Pooja Kulkarni <pkulkark(a)linux.vnet.ibm.com>
---
ui/js/wok.user-log.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/js/wok.user-log.js b/ui/js/wok.user-log.js
index a46ef07..1606f47 100644
--- a/ui/js/wok.user-log.js
+++ b/ui/js/wok.user-log.js
@@ -166,10 +166,10 @@ wok.initUserLog = function() {
};
wok.initUserLogWindow = function() {
- var currentLang = wok.lang.get();
- currentLang = currentLang.substring(0, currentLang.indexOf('_'));
+ var currentLocale = wok.lang.get_locale();
+ currentLocale = currentLocale.substring(0, currentLocale.indexOf('-'));
$("#request-type").selectpicker();
- $.datepicker.setDefaults($.datepicker.regional[currentLang]);
+ $.datepicker.setDefaults($.datepicker.regional[currentLocale]);
$("#date").datepicker({ dateFormat: 'yy-mm-dd',
onSelect: function(dateText) {
$('#button-search').prop('disabled',false);