Commit 520600578baa21b7bfbae205fd088c20d6c05a75
1 parent
9c1f2964
Usunięto problemy z dodawaniem ram
Showing
2 changed files
with
3 additions
and
1 deletions
semantics/static/js/semantics_frames.js
... | ... | @@ -204,7 +204,7 @@ function newFrame(units) { |
204 | 204 | } |
205 | 205 | lexical_units_num.push(units_list); |
206 | 206 | |
207 | - frame_content[free_frame_id] = {colspan: "1", rowspan: "1", status: "brak", frame_id: "" + x, display: {preferences:[[]], roles:[]}, lemma: {include: false}}; | |
207 | + frame_content[free_frame_id] = {colspan: "1", rowspan: "1", status: "brak", frame_id: "" + x, display: {preferences:[[]], roles:[]}, lemma: {include: false}, local:true, visible:true}; | |
208 | 208 | frames_operations.push({operation: "create_frame", meanings: units_list, id: x}); |
209 | 209 | free_frame_id = free_frame_id - 1; |
210 | 210 | } |
... | ... |
semantics/views.py
... | ... | @@ -129,11 +129,13 @@ def create_frames_context(lemma_id, user): |
129 | 129 | lemma_entry = lemma.entry_obj |
130 | 130 | if (lu_entry.name, lu_entry.pos.tag) == (lemma_entry.name, lemma_entry.pos.tag): |
131 | 131 | frame_display["visible"] = True |
132 | + | |
132 | 133 | for frame in type_frames[t]: |
133 | 134 | frame_entry = frame.entry |
134 | 135 | lemma_entry = lemma.entry_obj |
135 | 136 | if (frame_entry.name, frame_entry.pos.tag) == (lemma_entry.name, lemma_entry.pos.tag): |
136 | 137 | frame_display["local"] = True |
138 | + frame_display["visible"] = True | |
137 | 139 | else: |
138 | 140 | frame_display["local"] = False |
139 | 141 | |
... | ... |