Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Created March 14, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanRoberts/e4e52d9773989b99189c to your computer and use it in GitHub Desktop.
Save SeanRoberts/e4e52d9773989b99189c to your computer and use it in GitHub Desktop.
export const toggleModalForm = (to) => {
if (to === 'on') {
Tenon.features.ModalWindows.prepBodyForModal();
} else {
Tenon.features.ModalWindows.clearBody();
}
return {
type: types.TOGGLE_MODAL_FORM,
to: to
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment