Merge pull request #4023 from emanuelschuetze/bugfixes
Several bug fixes for 2.3.x
This commit is contained in:
commit
3b6cebc4ee
@ -17,6 +17,11 @@ Bugfixes:
|
|||||||
html tags for old and new text) [#3942].
|
html tags for old and new text) [#3942].
|
||||||
- Fixed motion/amendment diff bug [#3943, #3946, #4020].
|
- Fixed motion/amendment diff bug [#3943, #3946, #4020].
|
||||||
- Allow to hide internal items in agenda sort view [#3992].
|
- Allow to hide internal items in agenda sort view [#3992].
|
||||||
|
- Several minor bug fixes [#4023], especially:
|
||||||
|
|
||||||
|
- Fixed motion slide: project diff mode by default (if selected in config)
|
||||||
|
- PDF export: Added missing alignment for pdf header logo (right).
|
||||||
|
- Fixed set motion block multi action.
|
||||||
|
|
||||||
|
|
||||||
Version 2.3 (2018-09-20)
|
Version 2.3 (2018-09-20)
|
||||||
|
@ -197,6 +197,10 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var text;
|
||||||
|
if (logoHeaderLeftUrl && logoHeaderRightUrl) {
|
||||||
|
text = '';
|
||||||
|
} else {
|
||||||
var line1 = [
|
var line1 = [
|
||||||
Config.translate(Config.get('general_event_name').value),
|
Config.translate(Config.get('general_event_name').value),
|
||||||
Config.translate(Config.get('general_event_description').value)
|
Config.translate(Config.get('general_event_description').value)
|
||||||
@ -205,7 +209,8 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
Config.get('general_event_location').value,
|
Config.get('general_event_location').value,
|
||||||
Config.get('general_event_date').value
|
Config.get('general_event_date').value
|
||||||
].filter(Boolean).join(', ');
|
].filter(Boolean).join(', ');
|
||||||
var text = [line1, line2].join('\n');
|
text = [line1, line2].join('\n');
|
||||||
|
}
|
||||||
columns.push({
|
columns.push({
|
||||||
text: text,
|
text: text,
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
@ -220,6 +225,7 @@ angular.module('OpenSlidesApp.core.pdf', [])
|
|||||||
columns.push({
|
columns.push({
|
||||||
image: logoHeaderRightUrl,
|
image: logoHeaderRightUrl,
|
||||||
fit: [180, 40],
|
fit: [180, 40],
|
||||||
|
alignment: 'right',
|
||||||
width: '20%'
|
width: '20%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -609,6 +609,7 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
|
|||||||
}, function () {
|
}, function () {
|
||||||
$scope.change_recommendations = [];
|
$scope.change_recommendations = [];
|
||||||
$scope.title_change_recommendation = null;
|
$scope.title_change_recommendation = null;
|
||||||
|
if (motion) {
|
||||||
MotionChangeRecommendation.filter({
|
MotionChangeRecommendation.filter({
|
||||||
'where': {'motion_version_id': {'==': motion.active_version}}
|
'where': {'motion_version_id': {'==': motion.active_version}}
|
||||||
}).forEach(function (change) {
|
}).forEach(function (change) {
|
||||||
@ -620,6 +621,7 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
rebuild_amendments_crs();
|
rebuild_amendments_crs();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
|
@ -72,6 +72,7 @@ angular.module('OpenSlidesApp.motions.projector', [
|
|||||||
return Motion.lastModified(motionId);
|
return Motion.lastModified(motionId);
|
||||||
}, function () {
|
}, function () {
|
||||||
$scope.motion = Motion.get(motionId);
|
$scope.motion = Motion.get(motionId);
|
||||||
|
if ($scope.motion) {
|
||||||
$scope.amendment_diff_paragraphs = $scope.motion.getAmendmentParagraphsLinesDiff();
|
$scope.amendment_diff_paragraphs = $scope.motion.getAmendmentParagraphsLinesDiff();
|
||||||
$scope.viewChangeRecommendations.setVersion($scope.motion, $scope.motion.active_version);
|
$scope.viewChangeRecommendations.setVersion($scope.motion, $scope.motion.active_version);
|
||||||
_.forEach($scope.motion.polls, function (poll) {
|
_.forEach($scope.motion.polls, function (poll) {
|
||||||
@ -79,6 +80,8 @@ angular.module('OpenSlidesApp.motions.projector', [
|
|||||||
precisionCache[poll.id] = decimalPlaces;
|
precisionCache[poll.id] = decimalPlaces;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$scope.viewChangeRecommendations.initProjector($scope, $scope.motion, $scope.mode);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var precisionCache = {};
|
var precisionCache = {};
|
||||||
|
@ -234,7 +234,7 @@
|
|||||||
<i class="fa fa-cog"></i>
|
<i class="fa fa-cog"></i>
|
||||||
</span>
|
</span>
|
||||||
<ul uib-dropdown-menu class="dropdown-menu" aria-labelledby="recommendation-dropdown">
|
<ul uib-dropdown-menu class="dropdown-menu" aria-labelledby="recommendation-dropdown">
|
||||||
<li ng-repeat="recommendation in motion.state.getRecommendations()">
|
<li ng-repeat="recommendation in motion.state.getRecommendations() | orderBy:'id'">
|
||||||
<a href ng-click="motion.setRecommendation(recommendation.id)">
|
<a href ng-click="motion.setRecommendation(recommendation.id)">
|
||||||
{{ recommendation.recommendation_label | translate }}
|
{{ recommendation.recommendation_label | translate }}
|
||||||
<span ng-if="recommendation.show_recommendation_extension_field">...</span>
|
<span ng-if="recommendation.show_recommendation_extension_field">...</span>
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<!-- set motion block button -->
|
<!-- set motion block button -->
|
||||||
<a ng-show="selectedAction == 'setMotionBlock' && selectedMotionBlock"
|
<a ng-show="selectedAction == 'setMotionBlock' && selectedMotionBlock"
|
||||||
ng-click="setMotionBlockMultiple(motionsFilterd, selectedMotionBlock)" class="btn btn-default btn-sm">
|
ng-click="setMotionBlockMultiple(motionsFiltered, selectedMotionBlock)" class="btn btn-default btn-sm">
|
||||||
<translate>Set motion block</translate>
|
<translate>Set motion block</translate>
|
||||||
</a>
|
</a>
|
||||||
<!-- delete button -->
|
<!-- delete button -->
|
||||||
|
Loading…
Reference in New Issue
Block a user