Skip to content

Commit

Permalink
Hide external lemma link icon when no URLs are defined (re #48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Bollmann committed Jul 4, 2017
1 parent c7c1495 commit 8614aa6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/css/screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,10 @@ table.editTable{
&.editTable_tokenid {
text-align: right;
}
&.editTable_lemma_sugg {
padding-left: 0;
padding-right: 0;
}
}

td {
Expand Down Expand Up @@ -1054,6 +1058,10 @@ table.editTable{
}
&.editTable_lemma_sugg {
padding-left: 0 !important;

&:empty {
padding: 0 !important;
}
}

&.data-table-clickable {
Expand Down
5 changes: 5 additions & 0 deletions src/gui/js/tagsets/LemmaSugg.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ var LemmaSuggTagset = new Class({
td - Table cell element to update
*/
buildTemplate: function(td) {
if (!this.settings ||
!(this.settings["url_with_id"] || this.settings["url_with_lemma"])) {
// don't show link icon when no links are defined
td.empty();
}
},

/* Function: getEventData
Expand Down

0 comments on commit 8614aa6

Please sign in to comment.