Makes the plugin handle Bootstrap's JavaScript and CSS#37
Conversation
makes QUnit a devDependency.
1. Makes MonthPicker.js create an alias to jQuery UI's .button() that dosen't conflict with Bootstrap's button. 2. Adds the .month-picker table CSS rule that overrides bootstrap's table CSS rule which messes up the layout.
|
I totally agree and that is what I was getting at. Bootstrap is a totally If it is dirt simple to add some Bootstrap support, OK. But Bootstrap is On Mon, Jan 4, 2016 at 7:19 AM, Benjamin Albert notifications@github.com
|
|
OK it looks like bootstrap works and all tests pass in this branch. Very good, as long as it was easy and no one complains about having to do it, then sure, why not. However, in my opinion, if you are looking for Bootstrap support, then you should look at the repo below. https://github.com/smalot/bootstrap-datetimepicker I am merging this now! Great job once again Benjamin, thanks for the support! |
|
No conflicts either, when you had 2 branches going! You make this way to easy for me Benjamin. You are a real pro! |
Makes the plugin handle Bootstrap's JavaScript and CSS
Personally I think we should handle and support Bootstrap as long as it isn't a huge unnecessary burden.
This pull request fixes #35 by making
MonthPicker.jscreate an alias to jQuery UI's.button()that doesn't conflict with Bootstrap's button using jQuery UI's $.widget.bridge() method as shown:It also adds the
.month-picker tableCSS rule that overridesbootstrap's table CSS rule which messes up the layout.
IMPORTANT:
I've added Bootstrap to our bower devDependencies and test page, so make sure to run:
before running the tests.
If the 3.0 prototype will work fine with the latest bootstrap configurations we should mention this in the projects README when we release version 3.0
I'll discuss official Bootstrap support in depth in #31.
I personally had fun messing around and writing support for Bootstrap (something I wish I could do at work).