Skip to content
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

Merged
merged 1 commit into from
May 6, 2016
Merged

Adding dateCells option #1723

merged 1 commit into from
May 6, 2016

Conversation

jpdevries
Copy link
Contributor

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.

@@ -1062,7 +1062,8 @@
}

clsName = $.unique(clsName);
html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');
console.log(this.o.dateCells);

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.

Copy link
Member

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

@jpdevries
Copy link
Contributor Author

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
@jpdevries
Copy link
Contributor Author

Updated and squashed commits. Looks like it passes the test now. Sorry about that!

@acrobat acrobat added this to the 1.7.0 milestone May 4, 2016
@acrobat
Copy link
Member

acrobat commented May 6, 2016

Thanks @jpdevries

@acrobat acrobat merged commit 0309d22 into uxsolutions:master May 6, 2016
@acrobat acrobat mentioned this pull request May 1, 2017
@RinkAttendant6
Copy link

Has this option been documented or am I overlooking it in the docs?

@acrobat
Copy link
Member

acrobat commented Jun 19, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants