1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Support 'firstDay' option on JS calendar to set day of week for first column (0 = Sunday = default).

This commit is contained in:
SteveD
2012-12-13 21:10:10 +00:00
parent b990993347
commit dd4d38e128
2 changed files with 7 additions and 3 deletions

View File

@@ -139,6 +139,7 @@ $(document).ready(function()
$(this).datepicker({
dateFormat: $(this).attr("data-date-format"),
ampm: $(this).attr("data-date-ampm"),
firstDay: $(this).attr("data-date-firstday"),
showButtonPanel: true
});
});
@@ -148,6 +149,7 @@ $(document).ready(function()
dateFormat: $(this).attr("data-date-format"),
timeFormat: $(this).attr("data-time-format"),
ampm: $(this).attr("data-date-ampm"),
firstDay: $(this).attr("data-date-firstday"),
showButtonPanel: true
});
});
@@ -159,6 +161,7 @@ $(document).ready(function()
$(this).datepicker({
dateFormat: $(this).attr("data-date-format"),
ampm: $(this).attr("data-date-ampm"),
firstDay: $(this).attr("data-date-firstday"),
defaultDate: $("#"+newid).val(),
onSelect: function(dateText, inst) {
$("#"+newid).val(dateText);