16 lines
442 B
JavaScript
16 lines
442 B
JavaScript
|
(function() {
|
||
|
$(function() {
|
||
|
$("body").on("click", ".js-details-target", function() {
|
||
|
var container;
|
||
|
container = $(this).closest(".js-details-container");
|
||
|
return container.toggleClass("open");
|
||
|
});
|
||
|
return $("body").on("click", ".js-details-expand", function(e) {
|
||
|
$(this).next('.js-details-content').removeClass("hide");
|
||
|
$(this).hide();
|
||
|
return e.preventDefault();
|
||
|
});
|
||
|
});
|
||
|
|
||
|
}).call(this);
|