// fix datepicker

This commit is contained in:
Kevin Granger
2013-10-11 17:21:45 +02:00
parent 0f28393c8f
commit 41f5d9f1f1
5 changed files with 849 additions and 455 deletions
@@ -228,7 +228,7 @@
switch(target[0].nodeName.toLowerCase()) {
case 'th':
switch(target[0].className) {
case 'switch':
case 'month-switch':
this.showMode(1);
break;
case 'prev':
@@ -284,7 +284,7 @@
target.addClass("start-selected");
start = target.data("val");
$("#date-start").val(start);
!switched ? click = 1 : click = 2;
if(!switched) {click = 1;} else {click = 2;}
if(!switched){
$("#date-end").val(null).focus().addClass("input-selected");
target.addClass("start-selected").addClass("end-selected");
@@ -412,7 +412,7 @@
if (!data) {
$this.data('datepicker', (data = new Datepicker(this, $.extend({}, $.fn.datepicker.defaults,options))));
}
if (typeof option === 'string') { data[option](val) }
if (typeof option === 'string') { data[option](val);}
});
};
@@ -516,7 +516,7 @@
headTemplate: '<thead>'+
'<tr>'+
'<th class="prev"><i class="icon-angle-left"></i></th>'+
'<th colspan="5" class="switch"></th>'+
'<th colspan="5" class="month-switch"></th>'+
'<th class="next"><i class="icon-angle-right"</th>'+
'</tr>'+
'</thead>',