summaryrefslogtreecommitdiffstats
path: root/readmore.js
diff options
context:
space:
mode:
Diffstat (limited to 'readmore.js')
-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') {