diff --git a/openslides/core/static/css/app.css b/openslides/core/static/css/app.css
index 827827b59..c082cd255 100644
--- a/openslides/core/static/css/app.css
+++ b/openslides/core/static/css/app.css
@@ -1331,6 +1331,10 @@ img {
.scroll-x-container {
overflow-x: auto;
}
+.import-preview p {
+ margin: 0;
+ padding: 0;
+}
/* user details */
.user_details fieldset {
diff --git a/openslides/motions/static/js/motions/motion-services.js b/openslides/motions/static/js/motions/motion-services.js
index 3deb3c3cd..c728fb46b 100644
--- a/openslides/motions/static/js/motions/motion-services.js
+++ b/openslides/motions/static/js/motions/motion-services.js
@@ -79,8 +79,8 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
motion = _motion; // If this is not updated,
obj.originalHtml = motion.getTextWithLineBreaks(versionId);
obj.changed = false;
- obj.editor.setReadOnly(true);
if (obj.editor) {
+ obj.editor.setReadOnly(true);
obj.editor.setData(obj.originalHtml);
}
};
diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js
index c762353b7..923c5fc37 100644
--- a/openslides/motions/static/js/motions/site.js
+++ b/openslides/motions/static/js/motions/site.js
@@ -1263,7 +1263,7 @@ angular.module('OpenSlidesApp.motions.site', [
{headers: {'Content-Type': 'application/json'},
data: JSON.stringify({version_number: version.version_number})})
.then(function(success) {
- $scope.showVersion(motion.active_version);
+ $scope.showVersion({id: motion.active_version});
});
};
// check if user is allowed to see at least one comment field
diff --git a/openslides/motions/static/templates/motions/motion-detail.html b/openslides/motions/static/templates/motions/motion-detail.html
index 0317185d9..4bb5feb7a 100644
--- a/openslides/motions/static/templates/motions/motion-detail.html
+++ b/openslides/motions/static/templates/motions/motion-detail.html
@@ -495,7 +495,7 @@