summaryrefslogtreecommitdiffstats
path: root/readmore.js
Commit message (Collapse)AuthorAgeFilesLines
* Add blockProcessed callback, closes #136Jed Foster2016-05-131-2/+10
|
* Check that callbacks are actually functionsJed Foster2016-05-131-2/+6
|
* Add block IDs as value of data-readmore-toggle attrJed Foster2016-05-131-2/+2
| | | | Closes #142
* Fix issue with _this in toggle methodJed Foster2016-05-121-2/+2
| | | | Closes #131
* Fix merge conflictJed Foster2015-10-311-1/+1
|
* Merge branch 'master' of https://github.com/arusahni/Readmore.js into ↵Jed Foster2015-10-311-1/+1
|\ | | | | | | arusahni-master
| * Fix bug with the open start state.Aru Sahni2015-03-211-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 $thisJed Foster2015-10-311-35/+41
| |
* | Return jQuery-wrapped `element` argument to before and afterToggle ↵Jed Foster2015-10-311-2/+2
| | | | | | | | callbacks, closes #87
* | Add UMD support to pluginJoshua Davis2015-09-211-2/+13
|/ | | | | This makes it easier to use various module loaders such as Browserify and Webpack.
* Minor merge cleanupv2.0.5Jed Foster2015-02-151-11/+10
|
* resolve issue #85stelioschar2015-02-151-2/+9
|
* Fix collapsedHeight logicv2.0.4Jed Foster2015-02-011-8/+1
| | | | Fixes #77. Wasn't properly using `max-height` set in CSS.
* Refactor init()v2.0.2Jed Foster2015-02-011-44/+40
| | | | Call `init()` as soon as Readmore is invoked, changing the `window.load` callback to `resizeBoxes`.
* Adjust height calculation and fix conditionalv2.0.1Jed Foster2015-01-031-2/+2
|
* Change sectionCSS to blockCSSJed Foster2015-01-021-3/+3
|
* Tweaks for code consistency and readabilityJed Foster2015-01-021-19/+43
|
* Minor optimizationsJed Foster2015-01-021-18/+21
|
* Add 'use strict'Jed Foster2015-01-021-0/+1
|
* Break up some long lines and make JSHint happyJed Foster2015-01-021-15/+25
|
* Refactor stylesheet embedding as new functionJed Foster2015-01-021-19/+23
|
* Move `setBoxHeights` & `resizeBoxes` out of Readmore objectJed Foster2015-01-021-46/+45
|
* Refactor height calculation and resizingJed Foster2015-01-021-24/+41
| | | | @wip
* Fix value of `expanded` as passed to `beforeToggle()`Jed Foster2015-01-021-1/+3
|
* Fix jQuery plugin code to allow zero argumentsJed Foster2015-01-021-1/+3
| | | | As originally written, it would blow up if `options` arg was undefined.
* Pass the native element, instead of jQuery objectJed Foster2015-01-011-1/+1
|
* Remove 'transitionend' event listener when callback completesJed Foster2015-01-011-1/+1
| | | | Prevents multiple `afterToggle` callback calls.
* Code style cleanupJed Foster2015-01-011-32/+45
|
* Wrap call to `init()` in a load event listenerJed Foster2015-01-011-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 programmaticallyJed Foster2015-01-011-2/+11
| | | | | | | | Can now do something like: ```javascript $('article:nth-of-type(3)').readmore('toggle'); ```
* Change `toggleSlider` to just `toggle`Jed Foster2014-12-311-3/+3
|
* Set IDs on sections and use aria-controls on togglesJed Foster2014-12-311-5/+12
|
* Use data-* and aria-* selectors instead of classesJed Foster2014-12-311-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 methodJed Foster2014-12-311-3/+20
| | | | Closes #37 and #55
* Remove CSS transform properties, seems excessive and unnecessaryJed Foster2014-12-311-3/+0
|
* Embed transition CSS regardless of value of `embedCSS`Jed Foster2014-12-311-10/+17
|
* Make plugin play nice with multiple instancesJed Foster2014-12-311-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 transitionJed Foster2014-12-311-7/+14
|
* Fix for https://github.com/jedfoster/Readmore.js/issues/73Chris Kief2014-12-311-1/+1
|
* Add missing semi-colon, closes #49Jed Foster2014-12-271-1/+1
|
* Rename data variable names and tweak toggle conditionalJed Foster2014-02-091-8/+8
|
* Urgh, remove errant console.log()Jed Foster2014-02-091-2/+0
|
* Recalculate box heights on window resizeJed Foster2014-02-091-4/+33
| | | | Closes #10, #19, and #23
* Refactor jQuery plugin init so destroy() is called first if Readmore already ↵Jed Foster2014-02-091-2/+7
| | | | exists on the element
* Add classes for expanded/collapsed blocks, closes #21Jed Foster2014-02-091-5/+7
|
* Change `more` argument to before/after callbacks to `expanded`Jed Foster2014-02-091-4/+6
|
* Code style clean up: replace double-quotes with single-quotesJed Foster2014-02-091-6/+6
|
* Fix up mergeJed Foster2014-02-091-2/+2
|
* Merge branch 'master' of https://github.com/kaaloo/Readmore.js into ↵Jed Foster2014-02-091-4/+5
|\ | | | | | | | | | | | | | | kaaloo-master Conflicts: readmore.js readmore.min.js
| * Update readmore.jsLuis Arias2013-12-191-3/+4
| | | | | | Properly setup the animate complete option.
| * Update readmore.jsLuis Arias2013-12-191-4/+4
| | | | | | Call afterToggle callback after the animation has completed.
* | Add destroy methodJed Foster2014-02-091-0/+10
| |
* | Fix up the mergeJed Foster2014-02-081-3/+10
| |
* | Remove 'console' command left over from most recent changesjlehner2014-01-021-1/+1
| |
* | Add height margin option to handle situations where the expanded div size is ↵jlehner2013-12-161-11/+7
|/ | | | just barely larger than maxHeight.
* Add new startOpen option to demo.htmlJed Foster2013-11-091-1/+0
|
* Wrong variable used to determine startOpen optionKevin Mark2013-11-081-1/+1
|
* Added startOpen option to prevent immediate truncationKevin Mark2013-11-081-4/+9
| | | | | The default behavior is to truncate the text immediately on initialization.
* Update readmore.jsnmatpt2013-10-031-1/+6
| | | Minor fix in css for compatibility with older IE versions
* Expose an option to disable the embedded CSS altogetherJed Foster2013-09-211-8/+14
|
* Expose section CSS as a config option. Closes #13Jed Foster2013-09-211-1/+2
|
* Fix dynamic stylesheet in IE. Closes #5 & #9Jed Foster2013-09-211-15/+10
|
* Store element-specific options in data attributes. Closes #7Jed Foster2013-08-261-5/+10
|
* Add beforeToggle and afterToggle callback functionsJed Foster2013-08-251-2/+14
|
* Add CSS class for toggle linksJed Foster2013-07-241-4/+4
|
* Add readmore-js CSS to set overflow and display properties; tweak ↵Jed Foster2013-07-241-4/+20
| | | | calculation of heights. Should close #3
* Refactor open/close methods as toggleJed Foster2013-07-241-15/+14
|
* Pass the event from the event listener to the openSlider/closeSlider ↵Rob Ballou2013-07-101-5/+5
| | | | functions. This fixes an issue in Firefox where the event variable is not found
* Update the GitHub Pages URL in the commentsJed Foster2013-04-241-1/+1
|
* Initial commitJed Foster2012-12-241-0/+99