diff --git a/openslides/core/static/js/core/pdf.js b/openslides/core/static/js/core/pdf.js index 9789cf3ac..31ae397b3 100644 --- a/openslides/core/static/js/core/pdf.js +++ b/openslides/core/static/js/core/pdf.js @@ -603,7 +603,7 @@ angular.module('OpenSlidesApp.core.pdf', []) }, // Helper function for determinating whether a parent of element is a list item. isInsideAList = function (element) { - parent = element.parentNode; + var parent = element.parentNode; while(parent !== null) { if (parent.nodeName.toLowerCase() === 'li') { return true; diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index c72bf5235..947c4bcb1 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -987,7 +987,7 @@ angular.module('OpenSlidesApp.motions.site', [ function (motion) {return motion.category ? motion.category.name : '';}, function (motion) {return motion.motionBlock ? motion.motionBlock.name : '';}, function (motion) {return motion.recommendation ? motion.getRecommendationName() : '';}, - function (motion) {return _.filter(motion.comments, function (comment) {return !!comment;}).join(' ');}, + function (motion) {return _.filter(motion.comments).join(' ');}, ]; $scope.filter.propertyDict = { 'submitters': function (submitter) { diff --git a/openslides/users/static/js/users/site.js b/openslides/users/static/js/users/site.js index 35984c853..19f92c5ae 100644 --- a/openslides/users/static/js/users/site.js +++ b/openslides/users/static/js/users/site.js @@ -109,7 +109,7 @@ angular.module('OpenSlidesApp.users.site', [ } ]) -.value('LoginDialog', {id: undefined}) +.value('LoginDialog', {}) /* * Directive to check for permissions @@ -913,6 +913,18 @@ angular.module('OpenSlidesApp.users.site', [ } ]) +.directive("showPassword", function() { + return function linkFn(scope, elem, attrs) { + scope.$watch(attrs.showPassword, function(value) { + if (value) { + elem.attr("type", "text"); + } else { + elem.attr("type", "password"); + } + }); + }; +}) + .controller('UserPasswordCtrl', [ '$scope', '$state', diff --git a/openslides/users/static/templates/users/user-change-password.html b/openslides/users/static/templates/users/user-change-password.html index 01705c476..8f40fdc3c 100644 --- a/openslides/users/static/templates/users/user-change-password.html +++ b/openslides/users/static/templates/users/user-change-password.html @@ -20,9 +20,9 @@ {{ alert.msg }}
- +
- Initial password: {{ user.default_password }} + + Show password + +