aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2015-04-27Multiple tooltip triggers don't play well togetherBraden M. Kelley2-6/+70
Fixes issue #16008
2015-04-27Merge pull request #16152 from jarthod/tooltip-placement-viewport-fixF A T2-18/+38
Tooltip/popover: Fix auto placement to use viewport
2015-04-27Set `box-sizing: border-box` on .container-viewport in #16142 testcaseChris Rebert1-0/+1
Otherwise, the test doesn't properly fail when the fix is reverted.
2015-04-27Compare tooltip right offset to viewport right offset (and not width)Adrien2-1/+28
Closes #16142 by merging it.
2015-04-25Throw error when tooltip/popover template has multiple top-level elementsChris Rebert3-1/+28
Closes #16219.
2015-04-23throw error when trying to show tooltip on :hidden elementChris Rebert3-34/+68
2015-04-21Allow viewport option to be a functionAdrien Siami2-1/+32
Closes #16151 by merging a rebased version of it that adds docs and 1 more assertion.
2015-04-21Merge pull request #16147 from Johann-S/event_insertedChris Rebert3-0/+32
Fixes #16124.
2015-04-20Tooltip: Destroy $tip, $arrow, $viewport to avoid memory leakNiels Steenbeek1-0/+6
Closes #16039.
2015-04-17Merge pull request #16226 from patrickhlauke/radio-toggle-kbd-fixPatrick H. Lauke2-5/+5
Fix radio button toggle behavior for keyboard users
2015-04-11Fix existing radio button unit testPatrick H. Lauke1-2/+2
2015-04-11Don't preventDefault radio buttonsPatrick H. Lauke1-3/+3
as this breaks keyboard navigation for radio button toggles (see https://github.com/twbs/bootstrap/issues/16223)
2015-04-08Use .dropdown-menu instead of ARIA roles for dropdown keydown event handler; ↵Chris Rebert1-2/+1
fixes #16090
2015-04-08Add event after template insertedJohann-S3-0/+32
2015-03-29fixed IE incompatible CSSAdrien Jarthon1-1/+1
2015-03-29Added non-regression test & fixed existing oneAdrien Jarthon1-12/+33
2015-03-29Merge branch 'master' into v4Mark Otto12-84/+457
Conflicts: .gitignore Gruntfile.js _config.yml dist/css/bootstrap-theme.css dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.js dist/js/bootstrap.min.js docs/_includes/components/navbar.html docs/_includes/components/progress-bars.html docs/_includes/css/grid.html docs/_includes/css/overview.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/community.html docs/_includes/getting-started/disabling-responsiveness.html docs/_includes/getting-started/download.html docs/_includes/getting-started/examples.html docs/_includes/getting-started/license.html docs/_includes/getting-started/third-party-support.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/scrollspy.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/js/transitions.html docs/_includes/nav/javascript.html docs/_includes/nav/main.html docs/about.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/assets/js/src/customizer.js docs/dist/css/bootstrap-theme.css docs/dist/css/bootstrap-theme.min.css docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/dist/js/bootstrap.js docs/dist/js/bootstrap.min.js docs/migration.html js/affix.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/popover.js js/scrollspy.js js/tab.js js/tests/unit/affix.js js/tests/unit/button.js js/tests/unit/carousel.js js/tests/unit/modal.js js/tests/unit/tooltip.js js/tests/visual/modal.html js/tooltip.js less/component-animations.less less/jumbotron.less less/mixins/background-variant.less less/mixins/buttons.less less/mixins/responsive-visibility.less less/mixins/text-emphasis.less less/navbar.less less/navs.less less/scaffolding.less less/tooltip.less less/utilities.less less/variables.less package.json scss/_buttons.scss scss/_forms.scss scss/_modal.scss
2015-03-26JSCS: Add "disallowSpacesInFunctionDeclaration"Heinrich Fenkart1-0/+1
Valid: function a() {} Invalid: function a () {}
2015-03-25rm redundant aria-hidden usage from Modals; fixes #16020Chris Rebert3-33/+2
2015-03-25Tooltip/popover: Fix auto placement to use viewportAdrien Jarthon1-6/+5
Currently, auto placement is using the container dimensions (if provided) or the element's parent to determine where to open the tooltip: ```javascript var $container = this.options.container ? $(this.options.container) : this.$element.parent() var containerDim = this.getPosition($container) ``` This is quite broken in fact, because the parent element could be just a small div outside the element for example, leading in a totally random placement (placing the tooltip on top even if there's no room). And the container can also be outside of the viewport. This fix simply uses the viewport instead, that's the purpose of the viewport actually, to position the tooltip. So the auto placement should use it to find where there's more room. By default this is body, which is good.
2015-03-24Merge pull request #15987 from twbs/fix-15972Chris Rebert3-30/+30
add role="button" to a[data-toggle="collapse"]
2015-03-21Fix #16072: Clicking into input field within dropdown no longer closes the ↵Emmanuel Bourgerie2-0/+40
dropdown Closes #16073 by merging it
2015-03-18Merge pull request #16024 from twbs/unnecessary-parsingChris Rebert2-2/+6
avoid unnecessary HTML string building+parsing
2015-03-16v3.3.2 => v3.3.4Chris Rebert12-23/+23
2015-03-10Fixed proper navigation element selection on backward scrolling (from the ↵Maxim Andrukhovych2-1/+47
bottom to the top)
2015-03-09Merge pull request #16012 from twbs/refs-12761Chris Rebert10-64/+104
Disable jQuery event aliases when running test suite
2015-03-09avoid unnecessary HTML string building+parsingChris Rebert2-2/+6
2015-03-09Affix: $('body') => $(document.body)Chris Rebert1-1/+1
2015-03-09Disable jQuery event aliases when running test suiteChris Rebert10-64/+104
To ensure that we don't accidentally use any of the aliases. This should prevent any future regressions from #12761. Also updates the test suite since it now can't use these aliases either.
2015-03-09Merge pull request #16011 from twbs/fix-15315Chris Rebert2-5/+32
.collapse('hide') on hidden uninit-ed collapsible no longer shows it
2015-03-07add togglable scrollbar-inducing content to Modal visual testChris Rebert1-0/+18
2015-03-07add static navbar to Modal visual testChris Rebert1-0/+23
2015-03-06Merge pull request #15999 from twbs/kkirsche-includeTestsReadmeChris Rebert1-0/+61
Document JS test suite basics
2015-03-06[Fixes #15951] Document JS test suite basicsKevin Kirsche1-0/+61
X-Ref: #15953 Closes #15952 by merging a tweaked version of it. [skip sauce] [skip validator]
2015-03-06Collapse unit test: rm check that no-op hide adds style="height: 0px"Chris Rebert1-2/+1
Appears to be unnecessary and is broken by #16011, which is otherwise quite sane.
2015-03-06.collapse('hide') on hidden uninit-ed collapsible no longer shows it; fixes ↵Chris Rebert2-3/+31
#15315 Thanks to @peterblazejewicz & @Nikita240 Adds unit tests based on #14417 X-Ref: #14282 Closes #15807
2015-03-03Hiding an uninitialized tooltip/popover no longer initializes it; fixes #15874Chris Rebert4-2/+26
2015-03-03add role="button" to a[data-toggle="collapse"]; fixes #15972Chris Rebert3-30/+30
2015-03-03rm semicolon for sake of fat's eccentric tastesChris Rebert1-1/+1
Erratum from #15496
2015-03-03Merge pull request #15961 from kkirsche/ImplementAssertExpectHeinrich Fenkart12-4/+198
[Fixes #15953] Implement assert.expect in each unit test
2015-03-03[Fixes #15953] Implement assert.expect in each unit testKevin Kirsche12-4/+198
[Fixes #15953] Implement `assert.expect` in each unit test
2015-03-03Modal: Fix backdrop not readjusting when height changesHeinrich Fenkart3-27/+69
Fixes #15136. Closes #15345. Closes #15314. Refs #14724, #14927.
2015-03-02Merge pull request #15970 from twbs/the-future-is-now-qunitChris Rebert1-0/+28
Disable deprecated QUnit global methods
2015-03-02Disable es3 for tests and customizer.js.XhmikosR1-0/+1
2015-03-01Disable deprecated global QUnit method aliases to prevent backsliding on ↵Chris Rebert1-0/+28
QUnit v2 readiness
2015-03-01Merge pull request #15955 from twbs/fixture-on-screen-iosChris Rebert1-6/+11
Unit tests: Only display fixture on-screen for iOS
2015-03-01Merge pull request #15593 from ↵Chris Rebert2-1/+39
neoeno/handle_multiple_zero_offset_scrollspy_elements Handle multiple zero-offset Scrollspy elements.
2015-03-01Handle multiple zero-offset Scrollspy elements.Caden Lovelace2-1/+39
When the first two elements in a scrollspy content block have a document offset of zero (i.e. they're hard against the top of the page), Scrollspy would switch between them on every scroll event. This could happen, for example, in a system of nested sections: ``` <section id="animals"> <section id="dogs"> Content </section> </section> ``` This ocurred because Scrollspy's check to see if it's at the end of the array of sections uses `!arr[index]`. This misses the case where `arr[index]` does exist and is zero. This commit explicitly checks the array bounds.
2015-03-01Merge branch 'master' into v4Mark Otto10-248/+389
Conflicts: .travis.yml Gruntfile.js bower.json dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/js/bootstrap.js dist/js/bootstrap.min.js docs/_data/glyphicons.yml docs/_includes/components/breadcrumbs.html docs/_includes/components/button-dropdowns.html docs/_includes/components/button-groups.html docs/_includes/components/dropdowns.html docs/_includes/components/glyphicons.html docs/_includes/components/labels.html docs/_includes/components/list-group.html docs/_includes/components/media.html docs/_includes/components/navs.html docs/_includes/components/panels.html docs/_includes/components/progress-bars.html docs/_includes/components/thumbnails.html docs/_includes/components/wells.html docs/_includes/css/buttons.html docs/_includes/css/forms.html docs/_includes/css/helpers.html docs/_includes/css/images.html docs/_includes/css/less.html docs/_includes/customizer-variables.html docs/_includes/getting-started/accessibility.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/community.html docs/_includes/getting-started/examples.html docs/_includes/getting-started/grunt.html docs/_includes/getting-started/license.html docs/_includes/getting-started/template.html docs/_includes/header.html docs/_includes/js/affix.html docs/_includes/js/alerts.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/overview.html docs/_includes/js/popovers.html docs/_includes/js/scrollspy.html docs/_includes/js/tabs.html docs/_includes/js/tooltips.html docs/_includes/js/transitions.html docs/_includes/nav/javascript.html docs/_layouts/default.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/assets/js/vendor/FileSaver.js docs/assets/js/vendor/autoprefixer.js docs/assets/js/vendor/uglify.min.js docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/dist/js/bootstrap.min.js docs/examples/blog/index.html docs/examples/carousel/index.html docs/examples/cover/index.html docs/examples/dashboard/index.html docs/examples/narrow-jumbotron/narrow-jumbotron.css docs/examples/navbar-fixed-top/index.html docs/examples/navbar-static-top/index.html docs/examples/non-responsive/index.html docs/examples/non-responsive/non-responsive.css docs/examples/theme/index.html grunt/configBridge.json js/affix.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/popover.js js/scrollspy.js js/tab.js js/tests/unit/affix.js js/tests/unit/button.js js/tests/unit/carousel.js js/tests/unit/modal.js js/tests/unit/tooltip.js js/tooltip.js less/badges.less less/glyphicons.less less/type.less less/variables.less package.json scss/_dropdown.scss scss/_forms.scss test-infra/npm-shrinkwrap.json
2015-03-01Unit tests: Only display fixture on-screen for iOSHeinrich Fenkart1-6/+11
Since only on iOS tests fail when the fixture is displayed off-screen, see https://travis-ci.org/twbs/bootstrap/jobs/52605742