Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created January 14, 2019 01:19
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iaindooley/c3b8718057d0293f10f2820cc2a6b05f to your computer and use it in GitHub Desktop.
Lock card
function lockCardInPlace(notification)
{
var notif = new Notification(notification);
if(notif.member().notTrellinator())
{
var card = notif.movedCard();
if(!card.allChecklistsComplete())
card.moveToList(notif.listBefore());
}
}
function moveCompletedCard(notification)
{
new Notification(notification).completedAllChecklists().card().moveToNextList();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment