Merge pull request #73 from joey-di-nardo/patch-1

Fix issue #71
pull/82/head
Abdullah Almsaeed 11 years ago
commit 5a659ff5d6

@ -51,9 +51,13 @@ $(function() {
var bf = box.find(".box-body, .box-footer"); var bf = box.find(".box-body, .box-footer");
if (!box.hasClass("collapsed-box")) { if (!box.hasClass("collapsed-box")) {
box.addClass("collapsed-box"); box.addClass("collapsed-box");
//Convert minus into plus
$(this).children(".fa-minus").removeClass("fa-minus").addClass("fa-plus");
bf.slideUp(); bf.slideUp();
} else { } else {
box.removeClass("collapsed-box"); box.removeClass("collapsed-box");
//Convert plus into minus
$(this).children(".fa-plus").removeClass("fa-plus").addClass("fa-minus");
bf.slideDown(); bf.slideDown();
} }
}); });

Loading…
Cancel
Save