Fix 'stop' speech button in Safari (Fixes #2029)

Use '{}' instead of empty 'JSON.stringify()'.
This commit is contained in:
Emanuel Schuetze 2016-03-08 20:23:12 +01:00
parent 21d9898645
commit f47055c13a

View File

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