Merge pull request #2040 from emanuelschuetze/fix2029

Fix 'stop' speech button in Safari (Fixes #2029)
This commit is contained in:
Norman Jäckel 2016-03-08 22:14:06 +01:00
commit f29db57ace

View File

@ -318,7 +318,7 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])
$scope.endSpeech = function () { $scope.endSpeech = function () {
$http.delete( $http.delete(
'/rest/agenda/item/' + item.id + '/speak/', '/rest/agenda/item/' + item.id + '/speak/',
{headers: {'Content-Type': 'application/json'}, data: JSON.stringify()} {headers: {'Content-Type': 'application/json'}, data: {}}
) )
.error(function(data){ .error(function(data){
$scope.alert = { type: 'danger', msg: data.detail, show: true }; $scope.alert = { type: 'danger', msg: data.detail, show: true };