diff --git a/dist/bundle.js b/dist/bundle.js index ae5eec605b..93fb125eeb 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -74204,6 +74204,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -74212,7 +74213,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/dist/case.js b/dist/case.js index 505516a5a7..c7f21ab4cf 100644 --- a/dist/case.js +++ b/dist/case.js @@ -1703,6 +1703,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -1711,7 +1712,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/dist/fineui.js b/dist/fineui.js index c8749e75e5..ea3de0f3b1 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -74453,6 +74453,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -74461,7 +74462,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay }); diff --git a/src/case/calendar/calendar.js b/src/case/calendar/calendar.js index cd65b6b3be..35b391b38d 100644 --- a/src/case/calendar/calendar.js +++ b/src/case/calendar/calendar.js @@ -102,6 +102,7 @@ BI.Calendar = BI.inherit(BI.Widget, { items = BI.map(items, function (i, item) { return BI.map(item, function (j, td) { + var month = td.lastMonth ? o.month - 1 : (td.nextMonth ? o.month + 1 : o.month); return BI.extend(td, { type: "bi.text_item", cls: "bi-list-item-select", @@ -110,7 +111,7 @@ BI.Calendar = BI.inherit(BI.Widget, { once: false, forceSelected: true, height: 24, - value: o.year + "-" + o.month + "-" + td.text, + value: o.year + "-" + month + "-" + td.text, disabled: td.lastMonth || td.nextMonth || td.disabled // selected: td.currentDay });