diff --git a/openslides/agenda/static/js/agenda/site.js b/openslides/agenda/static/js/agenda/site.js index a373d890d..5e0416ff1 100644 --- a/openslides/agenda/static/js/agenda/site.js +++ b/openslides/agenda/static/js/agenda/site.js @@ -81,6 +81,7 @@ angular.module('OpenSlidesApp.agenda.site', [ '$filter', '$http', '$state', + '$injector', 'DS', 'operator', 'ngDialog', @@ -96,9 +97,9 @@ angular.module('OpenSlidesApp.agenda.site', [ 'osTableFilter', 'AgendaCsvExport', 'PdfCreate', - function($scope, $filter, $http, $state, DS, operator, ngDialog, Agenda, TopicForm, AgendaTree, Projector, - ProjectionDefault, AgendaContentProvider, PdfMakeDocumentProvider, gettextCatalog, gettext, osTableFilter, - AgendaCsvExport, PdfCreate) { + function($scope, $filter, $http, $state, $injector, DS, operator, ngDialog, Agenda, TopicForm, + AgendaTree, Projector, ProjectionDefault, AgendaContentProvider, PdfMakeDocumentProvider, + gettextCatalog, gettext, osTableFilter, AgendaCsvExport, PdfCreate) { // Bind agenda tree to the scope $scope.$watch(function () { return Agenda.lastModified(); @@ -268,13 +269,22 @@ angular.module('OpenSlidesApp.agenda.site', [ return false; } }; - $scope.getUpdateStatePrefix = function (item) { + $scope.getDetailStatePrefix = function (item) { var prefix = item.content_object.collection.replace('/','.'); // Hotfix for Issue 2566. // The changes could be reverted if Issue 2480 is closed. prefix = prefix.replace('motion-block', 'motionBlock'); return prefix; }; + $scope.edit = function (item) { + var formName = item.content_object.collection.split('/')[1]; + // Hotfix for Issue 2566. + // The changes could be reverted if Issue 2480 is closed. + formName = formName.replace('motion-block', 'motionBlock'); + formName = formName.charAt(0).toUpperCase() + formName.slice(1) + 'Form'; + var form = $injector.get(formName); + ngDialog.open(form.getDialog({id: item.content_object.id})); + }; // export $scope.pdfExport = function () { var filename = gettextCatalog.getString('Agenda') + '.pdf'; diff --git a/openslides/agenda/static/templates/agenda/item-list.html b/openslides/agenda/static/templates/agenda/item-list.html index 17ede633d..0ca7023d3 100644 --- a/openslides/agenda/static/templates/agenda/item-list.html +++ b/openslides/agenda/static/templates/agenda/item-list.html @@ -271,7 +271,7 @@
- + {{ item.getListViewTitle() }} @@ -283,8 +283,7 @@ List of speakers · - Edit · + Edit · 0) { + if (oldVal.length > 0 && newVal.length > 0) { if ((oldVal[oldVal.length-1].id != newVal[newVal.length-1].id) && ($.inArray(newVal[newVal.length-1].id, NewChatMessages) == -1)) { NewChatMessages.push(newVal[newVal.length-1].id); $scope.unreadMessages = NewChatMessages.length; } + } else if (newVal.length === 0) { + NewChatMessages = []; + $scope.unreadMessages = 0; } }); diff --git a/openslides/core/static/templates/core/manage-projectors.html b/openslides/core/static/templates/core/manage-projectors.html index 77661eabb..6104c6bb3 100644 --- a/openslides/core/static/templates/core/manage-projectors.html +++ b/openslides/core/static/templates/core/manage-projectors.html @@ -133,7 +133,7 @@
diff --git a/openslides/core/static/templates/core/password.html b/openslides/core/static/templates/core/password.html new file mode 100644 index 000000000..da77f0bfb --- /dev/null +++ b/openslides/core/static/templates/core/password.html @@ -0,0 +1 @@ + diff --git a/openslides/core/static/templates/core/projector-controls.html b/openslides/core/static/templates/core/projector-controls.html index 9f4fc176b..8172ae93d 100644 --- a/openslides/core/static/templates/core/projector-controls.html +++ b/openslides/core/static/templates/core/projector-controls.html @@ -86,7 +86,7 @@
diff --git a/openslides/core/static/templates/core/tag-detail.html b/openslides/core/static/templates/core/tag-detail.html deleted file mode 100644 index 3f6ba5411..000000000 --- a/openslides/core/static/templates/core/tag-detail.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
- -

{{ tag.name }}

-

Tag

-
-
- -
diff --git a/openslides/core/static/templates/core/tag-form.html b/openslides/core/static/templates/core/tag-form.html index 36d46b227..d76e8c114 100644 --- a/openslides/core/static/templates/core/tag-form.html +++ b/openslides/core/static/templates/core/tag-form.html @@ -1,28 +1,17 @@ -
-
- -

Edit tag

-

New tag

-
+

Edit tag

+

New tag

+ +
+ {{ alert.msg }}
-
-
-
- - -
- - - + + + + +
-
diff --git a/openslides/core/static/templates/core/tag-list.html b/openslides/core/static/templates/core/tag-list.html index 3a91fd8d3..9bfd028fd 100644 --- a/openslides/core/static/templates/core/tag-list.html +++ b/openslides/core/static/templates/core/tag-list.html @@ -5,7 +5,7 @@ Back to overview - + New @@ -16,7 +16,11 @@
-
+
+
+ {{ alert.msg }} +
+
@@ -37,7 +41,7 @@ {{ tag.name }}
- Edit · + Edit ·