Commit 3079e54afd79d14b7d171fbc6309a4c847c680d3
1 parent
fb6e09a6
Refreshing frames after updating lexical units
Showing
1 changed file
with
16 additions
and
0 deletions
semantics/static/js/semantics_lexical_units.js
... | ... | @@ -122,6 +122,22 @@ function saveMeanings() { |
122 | 122 | }, |
123 | 123 | async: false |
124 | 124 | }); |
125 | + | |
126 | + $.ajax({ | |
127 | + dataType: "json", | |
128 | + url: ajax_frames, | |
129 | + data: {"lemma_id": lemma_id}, | |
130 | + success: function(data){ | |
131 | + getFrames(data.frames_display); | |
132 | + displayFrames(); | |
133 | + memorizeConnections(data.connections.connected, data.connections.connected_reverse); | |
134 | + alternationCounts(data.alternations); | |
135 | + $("#semantic-frames-count").empty(); | |
136 | + $("#semantic-frames-count").append(data.frames_count); | |
137 | + }, | |
138 | + async: false | |
139 | + }); | |
140 | + | |
125 | 141 | units_operations = []; |
126 | 142 | } |
127 | 143 | |
... | ... |