Skip to content

Instantly share code, notes, and snippets.

@whroman
Created November 30, 2015 21:25
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 whroman/5bf82bf2c517db7a0dec to your computer and use it in GitHub Desktop.
Save whroman/5bf82bf2c517db7a0dec to your computer and use it in GitHub Desktop.
Fahrschule Passer Script
App.data.currentSet.attributes.sd.each(function (model) {
var attrs = model.attributes.question.attributes;
model.set({
a1: attrs.answer1_value,
a2: attrs.answer2_value,
a3: attrs.answer3_value,
answered: true
});
});
App.toolbox.trigger("submit-set");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment