Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add blockProcessed callback, closes #136 | Jed Foster | 2016-05-13 | 1 | -2/+10 |
| | |||||
* | Check that callbacks are actually functions | Jed Foster | 2016-05-13 | 1 | -2/+6 |
| | |||||
* | Add block IDs as value of data-readmore-toggle attr | Jed Foster | 2016-05-13 | 1 | -2/+2 |
| | | | | Closes #142 | ||||
* | Fix issue with _this in toggle method | Jed Foster | 2016-05-12 | 1 | -2/+2 |
| | | | | Closes #131 | ||||
* | Fix merge conflict | Jed Foster | 2015-10-31 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of https://github.com/arusahni/Readmore.js into ↵ | Jed Foster | 2015-10-31 | 1 | -1/+1 |
|\ | | | | | | | arusahni-master | ||||
| * | Fix bug with the open start state. | Aru Sahni | 2015-03-21 | 1 | -1/+1 |
| | | | | | | | | | | | | Readmore doesn't check everywhere for the default open state on init. Before this fix, the toggle link text would use the `lessLink` content, but the Readmore element would display using the collapsed style. | ||||
* | | Refactor/remove usages of $this | Jed Foster | 2015-10-31 | 1 | -35/+41 |
| | | |||||
* | | Return jQuery-wrapped `element` argument to before and afterToggle ↵ | Jed Foster | 2015-10-31 | 1 | -2/+2 |
| | | | | | | | | callbacks, closes #87 | ||||
* | | Add UMD support to plugin | Joshua Davis | 2015-09-21 | 1 | -2/+13 |
|/ | | | | | This makes it easier to use various module loaders such as Browserify and Webpack. | ||||
* | Minor merge cleanupv2.0.5 | Jed Foster | 2015-02-15 | 1 | -11/+10 |
| | |||||
* | resolve issue #85 | stelioschar | 2015-02-15 | 1 | -2/+9 |
| | |||||
* | Fix collapsedHeight logicv2.0.4 | Jed Foster | 2015-02-01 | 1 | -8/+1 |
| | | | | Fixes #77. Wasn't properly using `max-height` set in CSS. | ||||
* | Refactor init()v2.0.2 | Jed Foster | 2015-02-01 | 1 | -44/+40 |
| | | | | Call `init()` as soon as Readmore is invoked, changing the `window.load` callback to `resizeBoxes`. | ||||
* | Adjust height calculation and fix conditionalv2.0.1 | Jed Foster | 2015-01-03 | 1 | -2/+2 |
| | |||||
* | Change sectionCSS to blockCSS | Jed Foster | 2015-01-02 | 1 | -3/+3 |
| | |||||
* | Tweaks for code consistency and readability | Jed Foster | 2015-01-02 | 1 | -19/+43 |
| | |||||
* | Minor optimizations | Jed Foster | 2015-01-02 | 1 | -18/+21 |
| | |||||
* | Add 'use strict' | Jed Foster | 2015-01-02 | 1 | -0/+1 |
| | |||||
* | Break up some long lines and make JSHint happy | Jed Foster | 2015-01-02 | 1 | -15/+25 |
| | |||||
* | Refactor stylesheet embedding as new function | Jed Foster | 2015-01-02 | 1 | -19/+23 |
| | |||||
* | Move `setBoxHeights` & `resizeBoxes` out of Readmore object | Jed Foster | 2015-01-02 | 1 | -46/+45 |
| | |||||
* | Refactor height calculation and resizing | Jed Foster | 2015-01-02 | 1 | -24/+41 |
| | | | | @wip | ||||
* | Fix value of `expanded` as passed to `beforeToggle()` | Jed Foster | 2015-01-02 | 1 | -1/+3 |
| | |||||
* | Fix jQuery plugin code to allow zero arguments | Jed Foster | 2015-01-02 | 1 | -1/+3 |
| | | | | As originally written, it would blow up if `options` arg was undefined. | ||||
* | Pass the native element, instead of jQuery object | Jed Foster | 2015-01-01 | 1 | -1/+1 |
| | |||||
* | Remove 'transitionend' event listener when callback completes | Jed Foster | 2015-01-01 | 1 | -1/+1 |
| | | | | Prevents multiple `afterToggle` callback calls. | ||||
* | Code style cleanup | Jed Foster | 2015-01-01 | 1 | -32/+45 |
| | |||||
* | Wrap call to `init()` in a load event listener | Jed Foster | 2015-01-01 | 1 | -1/+5 |
| | | | | | | This _seems_ to work quite well with images (and presumably with other variable height block-level content.) However, all content is visible while loading. This could be mitigated by calling `resizeBoxes` inside the load event callback, instead of `init`, but then you force the browser through two rounds of repainting. I'm going to leave it as is for now. | ||||
* | Allow `toggle` to be called programmatically | Jed Foster | 2015-01-01 | 1 | -2/+11 |
| | | | | | | | | Can now do something like: ```javascript $('article:nth-of-type(3)').readmore('toggle'); ``` | ||||
* | Change `toggleSlider` to just `toggle` | Jed Foster | 2014-12-31 | 1 | -3/+3 |
| | |||||
* | Set IDs on sections and use aria-controls on toggles | Jed Foster | 2014-12-31 | 1 | -5/+12 |
| | |||||
* | Use data-* and aria-* selectors instead of classes | Jed Foster | 2014-12-31 | 1 | -19/+18 |
| | | | | Replaced `.readmore-js-section` with `data-readmore-js-section` and `.readmore-js-toggle` with `data-readmore-js-toggle`. Replaced `expandedClass` and `collapsedClass` with `aria-expanded="true|false"`. | ||||
* | Debounce resizeBoxes method | Jed Foster | 2014-12-31 | 1 | -3/+20 |
| | | | | Closes #37 and #55 | ||||
* | Remove CSS transform properties, seems excessive and unnecessary | Jed Foster | 2014-12-31 | 1 | -3/+0 |
| | |||||
* | Embed transition CSS regardless of value of `embedCSS` | Jed Foster | 2014-12-31 | 1 | -10/+17 |
| | |||||
* | Make plugin play nice with multiple instances | Jed Foster | 2014-12-31 | 1 | -12/+16 |
| | | | | | | Modified plugin initialization and style injection to work with multiple Readmore instances. The 'speed' option can/should vary from instance to instance. This change allows that variation, rather than only using the first speed setting from the first instance. | ||||
* | Replace jQuery.animate() with CSS3 transition | Jed Foster | 2014-12-31 | 1 | -7/+14 |
| | |||||
* | Fix for https://github.com/jedfoster/Readmore.js/issues/73 | Chris Kief | 2014-12-31 | 1 | -1/+1 |
| | |||||
* | Add missing semi-colon, closes #49 | Jed Foster | 2014-12-27 | 1 | -1/+1 |
| | |||||
* | Rename data variable names and tweak toggle conditional | Jed Foster | 2014-02-09 | 1 | -8/+8 |
| | |||||
* | Urgh, remove errant console.log() | Jed Foster | 2014-02-09 | 1 | -2/+0 |
| | |||||
* | Recalculate box heights on window resize | Jed Foster | 2014-02-09 | 1 | -4/+33 |
| | | | | Closes #10, #19, and #23 | ||||
* | Refactor jQuery plugin init so destroy() is called first if Readmore already ↵ | Jed Foster | 2014-02-09 | 1 | -2/+7 |
| | | | | exists on the element | ||||
* | Add classes for expanded/collapsed blocks, closes #21 | Jed Foster | 2014-02-09 | 1 | -5/+7 |
| | |||||
* | Change `more` argument to before/after callbacks to `expanded` | Jed Foster | 2014-02-09 | 1 | -4/+6 |
| | |||||
* | Code style clean up: replace double-quotes with single-quotes | Jed Foster | 2014-02-09 | 1 | -6/+6 |
| | |||||
* | Fix up merge | Jed Foster | 2014-02-09 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' of https://github.com/kaaloo/Readmore.js into ↵ | Jed Foster | 2014-02-09 | 1 | -4/+5 |
|\ | | | | | | | | | | | | | | | kaaloo-master Conflicts: readmore.js readmore.min.js | ||||
| * | Update readmore.js | Luis Arias | 2013-12-19 | 1 | -3/+4 |
| | | | | | | Properly setup the animate complete option. | ||||
| * | Update readmore.js | Luis Arias | 2013-12-19 | 1 | -4/+4 |
| | | | | | | Call afterToggle callback after the animation has completed. | ||||
* | | Add destroy method | Jed Foster | 2014-02-09 | 1 | -0/+10 |
| | | |||||
* | | Fix up the merge | Jed Foster | 2014-02-08 | 1 | -3/+10 |
| | | |||||
* | | Remove 'console' command left over from most recent changes | jlehner | 2014-01-02 | 1 | -1/+1 |
| | | |||||
* | | Add height margin option to handle situations where the expanded div size is ↵ | jlehner | 2013-12-16 | 1 | -11/+7 |
|/ | | | | just barely larger than maxHeight. | ||||
* | Add new startOpen option to demo.html | Jed Foster | 2013-11-09 | 1 | -1/+0 |
| | |||||
* | Wrong variable used to determine startOpen option | Kevin Mark | 2013-11-08 | 1 | -1/+1 |
| | |||||
* | Added startOpen option to prevent immediate truncation | Kevin Mark | 2013-11-08 | 1 | -4/+9 |
| | | | | | The default behavior is to truncate the text immediately on initialization. | ||||
* | Update readmore.js | nmatpt | 2013-10-03 | 1 | -1/+6 |
| | | | Minor fix in css for compatibility with older IE versions | ||||
* | Expose an option to disable the embedded CSS altogether | Jed Foster | 2013-09-21 | 1 | -8/+14 |
| | |||||
* | Expose section CSS as a config option. Closes #13 | Jed Foster | 2013-09-21 | 1 | -1/+2 |
| | |||||
* | Fix dynamic stylesheet in IE. Closes #5 & #9 | Jed Foster | 2013-09-21 | 1 | -15/+10 |
| | |||||
* | Store element-specific options in data attributes. Closes #7 | Jed Foster | 2013-08-26 | 1 | -5/+10 |
| | |||||
* | Add beforeToggle and afterToggle callback functions | Jed Foster | 2013-08-25 | 1 | -2/+14 |
| | |||||
* | Add CSS class for toggle links | Jed Foster | 2013-07-24 | 1 | -4/+4 |
| | |||||
* | Add readmore-js CSS to set overflow and display properties; tweak ↵ | Jed Foster | 2013-07-24 | 1 | -4/+20 |
| | | | | calculation of heights. Should close #3 | ||||
* | Refactor open/close methods as toggle | Jed Foster | 2013-07-24 | 1 | -15/+14 |
| | |||||
* | Pass the event from the event listener to the openSlider/closeSlider ↵ | Rob Ballou | 2013-07-10 | 1 | -5/+5 |
| | | | | functions. This fixes an issue in Firefox where the event variable is not found | ||||
* | Update the GitHub Pages URL in the comments | Jed Foster | 2013-04-24 | 1 | -1/+1 |
| | |||||
* | Initial commit | Jed Foster | 2012-12-24 | 1 | -0/+99 |