Commit ee51ce2304346967772ebd8047302e7d87f4c6d8
1 parent
f95507ab
Focus po zapisie + 'siebie' we frazeologii
Showing
2 changed files
with
7 additions
and
1 deletions
semantics/phraseology_generator.py
... | ... | @@ -103,7 +103,7 @@ def get_nps(case, number, nouns, atr): |
103 | 103 | filtered = [] |
104 | 104 | for option in options: |
105 | 105 | (orth, tag) = option |
106 | - if u':' + case + u':' in tag: | |
106 | + if u':' + case in tag: | |
107 | 107 | filtered.append(option) |
108 | 108 | options = filtered |
109 | 109 | if number != u'_': |
... | ... |
semantics/static/js/semantics_view.js
... | ... | @@ -863,6 +863,12 @@ function frameClick(clicked_id) { |
863 | 863 | deselect(); |
864 | 864 | highlighted_id = ""; |
865 | 865 | semantics_selected_id = ""; |
866 | + $('#assign_role').attr('disabled', "True"); | |
867 | + $('#add_preference').attr('disabled', "True"); | |
868 | + $('#delete').attr('disabled', "True"); | |
869 | + $('#multi_lus').attr('disabled', "True"); | |
870 | + $('#change_lus').attr('disabled', "True"); | |
871 | + $('#change_opinion').attr('disabled', "True"); | |
866 | 872 | return; |
867 | 873 | } |
868 | 874 | |
... | ... |