forked from codebar/planner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert coffeescript file to plain old javascript
- Loading branch information
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Expand/collapse toggling for coach/student group subscriptions. | ||
// Used in the new user signup flow, to stop too many options being | ||
// presented. | ||
|
||
/* global $ */ | ||
|
||
$(() => | ||
$(".subscriptions .toggle").click(function (e) { | ||
const $section = $(e.target).closest(".subscriptions"); | ||
const $container = $(".group-container", $section); | ||
const $icon = $(".toggle i", $section); | ||
$container.slideToggle(400, () => $container.toggleClass("collapsed")); | ||
$icon.toggleClass("fa-chevron-right fa-chevron-down"); | ||
}) | ||
); |
This file was deleted.
Oops, something went wrong.