Fixed TypeError in Motion and Assignment Slides (Fixed#3813)
in MotionPollDecimalPlaces and AssignmentPollDecimalPlaces
This commit is contained in:
parent
172f1ed890
commit
0036567f7d
@ -324,10 +324,16 @@ angular.module('OpenSlidesApp.assignments', [])
|
||||
|
||||
.provider('AssignmentPollDecimalPlaces', [
|
||||
function () {
|
||||
this.$get = [function () {
|
||||
this.$get = ['$q', function ($q) {
|
||||
return {
|
||||
getPlaces: function (poll, find) {
|
||||
return 0;
|
||||
if (find) {
|
||||
return $q(function (resolve) {
|
||||
resolve(0);
|
||||
});
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
};
|
||||
}];
|
||||
|
@ -206,10 +206,16 @@ angular.module('OpenSlidesApp.motions', [
|
||||
|
||||
.provider('MotionPollDecimalPlaces', [
|
||||
function () {
|
||||
this.$get = [function () {
|
||||
this.$get = ['$q', function ($q) {
|
||||
return {
|
||||
getPlaces: function (poll, find) {
|
||||
return 0;
|
||||
if (find) {
|
||||
return $q(function (resolve) {
|
||||
resolve(0);
|
||||
});
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
};
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user