-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding dateCells option #1723
Adding dateCells option #1723
Conversation
@@ -1062,7 +1062,8 @@ | |||
} | |||
|
|||
clsName = $.unique(clsName); | |||
html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>'); | |||
console.log(this.o.dateCells); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like that it should be removed. Build is broken in Travis because console object not found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes any logging/debugging lines should be removed
Oops! My bad. I'll fix that |
Adds an option to add a data-date attribute with a timestamp representative of THAT CELL’s date. This makes bootstrap-datepicker more extensible when using callbacks. Have not run grunt dist removing console log
Updated and squashed commits. Looks like it passes the test now. Sorry about that! |
Thanks @jpdevries |
Has this option been documented or am I overlooking it in the docs? |
It seems that the docs are indeed still missing. Do you want to open a PR with the missing docs @RinkAttendant6? Or can you add the missing docs @jpdevries? Thanks! |
Adds an option to add a data-date attribute with a timestamp representative of that cell's date. This makes bootstrap-datepicker more extensible when using callbacks.
Have not run
grunt dist
Added unit tests as well.
