debug
This commit is contained in:
@@ -165,8 +165,6 @@ $(function () {
|
||||
var mod_desc = $('#book_desc');
|
||||
var height = mod_desc.height();
|
||||
var min_height = 54, max_height = 180;
|
||||
console.log(height)
|
||||
console.log(min_height)
|
||||
if (height > min_height) {
|
||||
mod_desc.css({height: min_height + 'px'}).next().show().on('click', function () {
|
||||
$(this).hide().next().show().end().prev().animate({height: (height < max_height ? max_height : height) + 'px'}, 200);
|
||||
@@ -179,8 +177,6 @@ $(function () {
|
||||
var mod_desc2 = $('#book_desc2');
|
||||
var height2 = mod_desc2.height();
|
||||
var min_height2 = 54, max_height2 = 180;
|
||||
console.log(height2)
|
||||
console.log(min_height2)
|
||||
if (height2 > min_height2) {
|
||||
mod_desc2.css({height: min_height2 + 'px'}).next().show().on('click', function () {
|
||||
$(this).hide().next().show().end().prev().animate({height: (height2 < max_height2 ? max_height2 : height2) + 'px'}, 200);
|
||||
|
||||
Reference in New Issue
Block a user