summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Kief <chris.kief@gmail.com>2014-12-31 00:48:59 -0500
committerChris Kief <chris.kief@gmail.com>2014-12-31 00:48:59 -0500
commitd28bfd6eee6137a8905925157e2805e085138367 (patch)
tree01a5f0c9573738cfd8a9d642056155490574576d
parentd8d5cdef39d9592fc6a8ae807a972a685ef6ffd1 (diff)
downloadReadmore.js-d28bfd6eee6137a8905925157e2805e085138367.zip
Readmore.js-d28bfd6eee6137a8905925157e2805e085138367.tar.gz
Readmore.js-d28bfd6eee6137a8905925157e2805e085138367.tar.bz2
Fix for https://github.com/jedfoster/Readmore.js/issues/73
-rw-r--r--readmore.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/readmore.js b/readmore.js
index 82ed259..1229fb4 100644
--- a/readmore.js
+++ b/readmore.js
@@ -67,7 +67,7 @@
$(this.element).each(function() {
var current = $(this),
- maxHeight = (current.css('max-height').replace(/[^-\d\.]/g, '') > current.data('max-height')) ? current.css('max-height').replace(/[^-\d\.]/g, '') : current.data('max-height'),
+ maxHeight = (parseInt(current.css('max-height').replace(/[^-\d\.]/g, ''), 10) > current.data('max-height')) ? parseInt(current.css('max-height').replace(/[^-\d\.]/g, ''), 10) : current.data('max-height'),
heightMargin = current.data('height-margin');
if(current.css('max-height') != 'none') {