Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…o Update-text-in-About-Family-Names-page-Beit-Hatfutsot#324
  • Loading branch information
Libisch committed Mar 22, 2017
2 parents 1506b65 + a14a6c5 commit b325492
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
14 changes: 1 addition & 13 deletions js/modules/main/src/controllers/personViewController.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,6 @@ PersonViewController.prototype = {
}
},

get_fname: function(d) {
try {
return d.name[0];
}
catch (e) {
// something's wrong so we return a smile
return "\u263a";
}
},

clear: function () {
this.elements = {};
this.vertices = {};
Expand Down Expand Up @@ -379,9 +369,7 @@ PersonViewController.prototype = {
.classed('name', true)
.classed('noselect', true)
.text(function(d) {
return ['individual', 'partner', 'parent']
.indexOf(d.class) >= 0 ? self.get_full_name(d):
self.get_fname(d)
return self.get_full_name(d);
});


Expand Down
6 changes: 5 additions & 1 deletion scss/main/_ftree-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
.name {
font-size: 12px;
overflow: hidden;
@include vertical-align()
@include vertical-align();
}
}

Expand All @@ -76,6 +76,10 @@
height:16px;
}
}
.name {
line-height: 1em;
height: 1em;
}

}
.node[role="grandparent"], .node[role="sibling"] {
Expand Down
7 changes: 6 additions & 1 deletion scss/main/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,12 @@
}

p.vertical-middle {
margin-left: 2em;
.he & {
margin-right: 2em;
}
.en & {
margin-left: 2em;
}
}

&:hover {
Expand Down
2 changes: 1 addition & 1 deletion templates/main/ftrees/persons.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3 class="title__text">
label-text-en="Family Name"
label-text-he="שם משפחה"
model="last_name"
placeholder="{{(lang=='en')?'Cohen, Kafka...':'כהן, קפקא...'}}">
placeholder="{{(lang=='en')?'Cohen, Kafka...':'כהן, אינשטיין...'}}">
</filters-field>
<ng-switch on="ctrl.$stateParams.more">
<div ng-switch-when="1" class="filters__sex" >
Expand Down

0 comments on commit b325492

Please sign in to comment.