From 28d0f46239a05f01de66168e0a61f3d41b8e73fe Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Tue, 14 Jan 2014 11:00:33 +0100 Subject: [PATCH] Fix colspan if calendarWeeks & clearBtn are true When calendarWeeks and clearBtn are true at the same time, the th arround the clearbutton has the wrong colspan. --- js/bootstrap-datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-datepicker.js b/js/bootstrap-datepicker.js index f17de6d1c..40e9de185 100644 --- a/js/bootstrap-datepicker.js +++ b/js/bootstrap-datepicker.js @@ -116,7 +116,7 @@ this.viewMode = this.o.startView; if (this.o.calendarWeeks) - this.picker.find('tfoot th.today') + this.picker.find('tfoot th.today, tfoot th.clear') .attr('colspan', function(i, val){ return parseInt(val) + 1; });