} else {
editor.afform.create_submission = true;
}
- }
+ };
this.toggleEmailVerification = function() {
if (editor.afform.allow_verification_by_email) {
editor.afform.create_submission = true;
editor.afform.manual_processing = true;
}
- }
+ };
function loadNavigationMenu() {
if ('navigationMenu' in editor) {
select: ["afform_name"],
where: [["id", "=", id]],
}).then(function(afformSubmissions) {
- ctrl.afformName = afformSubmissions[0]['afform_name'];
+ ctrl.afformName = afformSubmissions[0].afform_name;
}, function(error) {
ctrl.onError();
});
- }
+ };
this.processData = function() {
_.each(ctrl.ids, function(id) {
name: ctrl.afformName
}).then(function(result) {
}, function(failure) {
- ctrl.onError()
+ ctrl.onError();
});
});
ctrl.onSuccess();
- }
+ };
this.save = function() {
// get the afform name