gitlab-org--gitlab-foss/app/assets/javascripts/behaviors/toggler_behavior.js
2016-07-24 23:45:11 +03:00

10 lines
336 B
JavaScript

(function() {
$(function() {
return $("body").on("click", ".js-toggle-button", function(e) {
$(this).find('i').toggleClass('fa fa-chevron-down').toggleClass('fa fa-chevron-up');
$(this).closest(".js-toggle-container").find(".js-toggle-content").toggle();
return e.preventDefault();
});
});
}).call(this);