diff --git a/openslides/agenda/static/js/agenda/site.js b/openslides/agenda/static/js/agenda/site.js index 004919c6f..f647c3c80 100644 --- a/openslides/agenda/static/js/agenda/site.js +++ b/openslides/agenda/static/js/agenda/site.js @@ -126,6 +126,12 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda']) $state.go(item.content_object.collection.replace('/','.')+'.detail', {id: item.content_object.id}); }; + // cancel QuickEdit mode + $scope.cancelQuickEdit = function (item) { + // revert all changes by restore (refresh) original item object from server + Agenda.refresh(item); + item.quickEdit = false; + }; // save changed item $scope.save = function (item) { Agenda.save(item).then( diff --git a/openslides/agenda/static/templates/agenda/item-list.html b/openslides/agenda/static/templates/agenda/item-list.html index 1a8735249..4ced3496b 100644 --- a/openslides/agenda/static/templates/agenda/item-list.html +++ b/openslides/agenda/static/templates/agenda/item-list.html @@ -168,42 +168,40 @@