summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update minified scriptHEADv2.2.0origin/masterorigin/HEADmasterJed Foster2016-05-131-1/+1
|
* Update README with new build instructionsJed Foster2016-05-131-1/+1
|
* Wrap `gulp compress` in npm `build` scriptJed Foster2016-05-131-1/+2
|
* Add blockProcessed callback, closes #136Jed Foster2016-05-133-4/+26
|
* 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
* Add jQuery dependency to bower.json, closes #127Jed Foster2016-05-121-4/+8
|
* Fix issue with jQuery dependency, closes #146Jed Foster2016-05-121-1/+1
|
* Fix issue with _this in toggle methodJed Foster2016-05-121-2/+2
| | | | Closes #131
* Fix typo in readmeJed Foster2015-11-011-1/+1
|
* Bump version to 2.1.0v2.1.0Jed Foster2015-10-313-4/+4
|
* Update README callback exampleJed Foster2015-10-311-1/+1
|
* Declare jQuery as dependency, set un-minified script as mainJed Foster2015-10-311-1/+4
|
* 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-212-2/+2
| | | | | | | | | | | | 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
| |
* | Update install instructionsJed Foster2015-10-312-6/+16
| |
* | Change package name for npmJed Foster2015-10-311-1/+1
| |
* | Add MIT license, closes #88Jed Foster2015-10-311-0/+22
| |
* | Return jQuery-wrapped `element` argument to before and afterToggle ↵Jed Foster2015-10-311-2/+2
| | | | | | | | callbacks, closes #87
* | Merge pull request #118 from joshua703/umdJed Foster2015-10-312-3/+14
|\ \ | |/ |/| Add UMD support to plugin
| * Add UMD support to pluginJoshua Davis2015-09-212-3/+14
|/ | | | | This makes it easier to use various module loaders such as Browserify and Webpack.
* Minor merge cleanupv2.0.5Jed Foster2015-02-151-11/+10
|
* Merge pull request #86 from stelioschar/masterJed Foster2015-02-152-3/+10
|\ | | | | Resolve error in IE8 with `window.addEventListener`
| * resolve issue #85stelioschar2015-02-152-3/+10
|/
* Fix collapsedHeight logicv2.0.4Jed Foster2015-02-014-11/+4
| | | | Fixes #77. Wasn't properly using `max-height` set in CSS.
* Fix version conflictv2.0.3Jed Foster2015-02-012-2/+2
|
* Refactor init()v2.0.2Jed Foster2015-02-012-45/+41
| | | | Call `init()` as soon as Readmore is invoked, changing the `window.load` callback to `resizeBoxes`.
* Add a demo with AJAX loaded contentJed Foster2015-02-012-0/+820
|
* Adjust height calculation and fix conditionalv2.0.1Jed Foster2015-01-032-3/+3
|
* Merge branch '2.0'v2.0.0Jed Foster2015-01-039-198/+534
|\
| * Add CHANGELOGJed Foster2015-01-031-0/+36
| |
| * Update readme and demoJed Foster2015-01-022-88/+208
| |
| * No more hipster impsumJed Foster2015-01-021-9/+9
| | | | | | | | It was fun while it lasted.
| * Tweak the demoJed Foster2015-01-021-3/+3
| |
| * Change sectionCSS to blockCSSJed Foster2015-01-021-3/+3
| |
| * Tweaks for code consistency and readabilityJed Foster2015-01-021-19/+43
| |
| * Bump Bower version and minified script fileJed Foster2015-01-022-8/+12
| |
| * Add NPM manifest and Gulp task for minificationJed Foster2015-01-022-0/+45
| |
| * Add .gitignoreJed Foster2015-01-021-0/+4
| | | | | | | | Not sure why this wasn't in place earlier.
| * 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-312-11/+19
| |
| * 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
|/
* Merge pull request #74 from chriskief/masterJed Foster2014-12-311-1/+1
|\ | | | | Fix for https://github.com/jedfoster/Readmore.js/issues/73
| * Fix for https://github.com/jedfoster/Readmore.js/issues/73Chris Kief2014-12-311-1/+1
|/
* Add bower.json1.0.0Jed Foster2014-12-281-0/+25
|
* Add missing semi-colon, closes #49Jed Foster2014-12-271-1/+1
|
* Minor tweaksJed Foster2014-05-011-10/+9
|
* Rename data variable names and tweak toggle conditionalJed Foster2014-02-092-12/+12
|
* Urgh, remove errant console.log()Jed Foster2014-02-093-6/+4
|
* Update minified versionJed Foster2014-02-091-6/+7
|
* 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
* Update minified versionJed Foster2014-02-091-5/+6
|
* Add classes for expanded/collapsed blocks, closes #21Jed Foster2014-02-093-5/+11
|
* Change `more` argument to before/after callbacks to `expanded`Jed Foster2014-02-093-14/+16
|
* Update minified versionJed Foster2014-02-091-1/+5
|
* Code style clean up: replace double-quotes with single-quotesJed Foster2014-02-091-6/+6
|
* Merge branch 'kaaloo-master'Jed Foster2014-02-092-10/+7
|\
| * Fix up mergeJed Foster2014-02-091-2/+2
| |
| * Merge branch 'master' of https://github.com/kaaloo/Readmore.js into ↵Jed Foster2014-02-092-9/+6
| |\ |/ / | | | | | | | | | | | | kaaloo-master Conflicts: readmore.js readmore.min.js
| * Update readmore.min.jsLuis Arias2013-12-191-1/+1
| |
| * Update readmore.min.jsLuis Arias2013-12-191-1/+1
| |
| * Update readmore.min.jsLuis Arias2013-12-191-1/+1
| | | | | | Update minified file.
| * Update readmore.jsLuis Arias2013-12-191-3/+4
| | | | | | Properly setup the animate complete option.
| * Update readmore.min.jsLuis Arias2013-12-191-5/+1
| |
| * Update readmore.jsLuis Arias2013-12-191-4/+4
| | | | | | Call afterToggle callback after the animation has completed.
* | Merge branch 'destroy-method'Jed Foster2014-02-094-7/+40
|\ \ | | | | | | | | | Closes #12
| * | Update minified versionJed Foster2014-02-091-5/+5
| | |
| * | Document the new destroy methodJed Foster2014-02-092-2/+25
| | |
| * | Add destroy methodJed Foster2014-02-091-0/+10
|/ /
* | Merge branch 'jackshakes-master'Jed Foster2014-02-094-8/+13
|\ \ | |/ |/|
| * Fix up the mergeJed Foster2014-02-084-5/+18
| |
| * Remove 'console' command left over from most recent changesjlehner2014-01-022-2/+2
| |
| * Add height margin option to handle situations where the expanded div size is ↵jlehner2013-12-162-16/+8
|/ | | | just barely larger than maxHeight.
* Update html5shiv locationJed Foster2013-11-271-1/+1
|
* Merge branch 'kmark-master'Jed Foster2013-11-093-4/+10
|\
| * Add new startOpen option to demo.htmlJed Foster2013-11-092-1/+1
| |
| * Wrong variable used to determine startOpen optionKevin Mark2013-11-081-1/+1
| |
| * Added startOpen option to prevent immediate truncationKevin Mark2013-11-082-4/+10
|/ | | | | The default behavior is to truncate the text immediately on initialization.
* Updated minified fileJed Foster2013-10-151-5/+5
|