Merge pull request #3763 from FinnStutzenstein/remarks
Fixed remarks (closes #3760)
This commit is contained in:
commit
7ad7e9fd5d
@ -1348,15 +1348,13 @@ angular.module('OpenSlidesApp.core', [
|
|||||||
|
|
||||||
Projector.inject(projectorsChanged);
|
Projector.inject(projectorsChanged);
|
||||||
|
|
||||||
return $q(function (resolve, reject) {
|
return $http.post('/rest/core/projector/project/', data).catch(
|
||||||
$http.post('/rest/core/projector/project/', data).then(function (success) {
|
function (error) {
|
||||||
resolve(success);
|
// revert the changes made earlier
|
||||||
}, function (error) {
|
|
||||||
// revert the changed made earlier
|
|
||||||
Projector.inject(originalProjectors);
|
Projector.inject(originalProjectors);
|
||||||
reject(error);
|
return $q.reject(error);
|
||||||
});
|
}
|
||||||
});
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user