Merge pull request #3814 from emanuelschuetze/fix3813
Fixed TypeError in Motion and Assignment Slides (Fixed#3813)
This commit is contained in:
commit
e012589ab0
@ -324,10 +324,16 @@ angular.module('OpenSlidesApp.assignments', [])
|
||||
|
||||
.provider('AssignmentPollDecimalPlaces', [
|
||||
function () {
|
||||
this.$get = [function () {
|
||||
this.$get = ['$q', function ($q) {
|
||||
return {
|
||||
getPlaces: function (poll, find) {
|
||||
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) {
|
||||
if (find) {
|
||||
return $q(function (resolve) {
|
||||
resolve(0);
|
||||
});
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
};
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user