diff --git a/dist/bundle.js b/dist/bundle.js index ae5eec605..93fb125ee 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 505516a5a..c7f21ab4c 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 c8749e75e..ea3de0f3b 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 cd65b6b3b..35b391b38 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 });