Some small changes and bugfixes

This commit is contained in:
FinnStutzenstein 2017-06-15 14:25:55 +02:00
parent 4810177b37
commit 2e898275cb
7 changed files with 18 additions and 7 deletions

View File

@ -1567,6 +1567,7 @@ img {
display: inline-block;
padding: .4em .6em;
margin-right: .2em;
white-space: normal;
}
/* for csv import form */

View File

@ -282,7 +282,7 @@ hr {
margin: 0 0 10px 10px;
top: 0px;
right: 0px;
padding: 23px 45px 0px 19px;
padding: 26px 45px 3px 19px;
min-height: 72px;
font-size: 3.7em;
font-weight: bold;

View File

@ -610,8 +610,8 @@ angular.module('OpenSlidesApp.core', [
$timeout(function () {
Messaging.createOrEditMessage(
'connectionLostMessage',
gettextCatalog.getString('Connection lost. You are not connected to the server anymore.'),
'error',
gettextCatalog.getString('Offline mode: You can use OpenSlides but changes are not saved.'),
'warning',
{noClose: true});
}, 1);
},

View File

@ -566,7 +566,7 @@ angular.module('OpenSlidesApp.motions', [
}
return value;
});
mode = mode || 'original';
mode = mode || Config.get('motions_recommendation_text_mode').value;
if (!wasProjectedBefore) {
return $http.post(
'/rest/core/projector/' + projectorId + '/prune_elements/',

View File

@ -30,7 +30,13 @@ angular.module('OpenSlidesApp.motions.projector', [
Motion.bindOne(id, $scope, 'motion');
User.bindAll({}, $scope, 'users');
MotionChangeRecommendation.bindAll({}, $scope, 'change_recommendations');
MotionChangeRecommendation.bindAll({
where: {
motion_version_id: {
'==': id,
},
},
}, $scope, 'change_recommendations');
}
]);

View File

@ -1245,7 +1245,10 @@ angular.module('OpenSlidesApp.motions.site', [
{mode: 'agreed',
label: 'Final version'},
];
$scope.projectionMode = $scope.projectionModes[0];
var motionDefaultTextMode = Config.get('motions_recommendation_text_mode').value;
$scope.projectionMode = _.find($scope.projectionModes, function (mode) {
return mode.mode == motionDefaultTextMode;
});
if (motion.isProjected().length) {
var modeMapping = motion.isProjectedWithMode();
_.forEach($scope.projectionModes, function (mode) {

View File

@ -493,8 +493,9 @@ angular.module('OpenSlidesApp.users.site', [
'osTableSort',
'gettext',
'UserPdfExport',
'ErrorMessage',
function($scope, $state, $http, $q, ngDialog, UserForm, User, Group, PasswordGenerator, Projector, ProjectionDefault,
Config, gettextCatalog, UserCsvExport, osTableFilter, osTableSort, gettext, UserPdfExport) {
Config, gettextCatalog, UserCsvExport, osTableFilter, osTableSort, gettext, UserPdfExport, ErrorMessage) {
User.bindAll({}, $scope, 'users');
Group.bindAll({where: {id: {'>': 1}}}, $scope, 'groups');
$scope.$watch(function () {