From f47055c13a77c302ab60bc980e2f746f18e241ca Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 8 Mar 2016 20:23:12 +0100 Subject: [PATCH] Fix 'stop' speech button in Safari (Fixes #2029) Use '{}' instead of empty 'JSON.stringify()'. --- openslides/agenda/static/js/agenda/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/agenda/static/js/agenda/site.js b/openslides/agenda/static/js/agenda/site.js index 2828e8a2e..21532c481 100644 --- a/openslides/agenda/static/js/agenda/site.js +++ b/openslides/agenda/static/js/agenda/site.js @@ -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 };