Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

define(['angular', 'app'], function (angular, app) {
'use strict';

app.service('submitEvaluationService', function ($state) {
return {
reset: function () {
this.retries = 3;
},
resubmit: function () {
this.retries--;

this.submit();
},
submit: function () {
var that = this;

this.submitFunction().then(function () {
$state.go(that.successRoute);
}, function () {
if (that.retries > 0) {
$state.go(that.retryRoute, {}, {reload: true});
} else {
$state.go(that.failedRoute);
}
});
}
};
});
});