Skip to content

Commit

Permalink
fix for #625 (grammems for copied lemma)
Browse files Browse the repository at this point in the history
  • Loading branch information
madfriend committed Apr 25, 2015
1 parent ab77071 commit f5575a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/dict/lemma_edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
var $lemma = $("#lemma_txt");
if (!res.error) {
var pseudo_stem = $lemma.val().substr(0, $lemma.val().length - res.lemma.suffix);
$("#lemma_gr").val(res.lemma.gram);
$("#lemma_gr").selectpicker('val', res.lemma.gram);
for (var i = 0; i < res.forms.length; ++i) {
dict_add_form(i);
var $tr = $("#paradigm tr").last();
Expand Down Expand Up @@ -122,7 +122,7 @@
{if $editor.lemma.id > 0}
<p>
<input type="text" name="lemma_text" value="{$editor.lemma.text|htmlspecialchars}">
<select name="lemma_gram[]" class="gram-selectpicker"
<select name="lemma_gram[]" id="lemma_gr" class="gram-selectpicker"
data-live-search="true" title="граммемы" multiple {if !$user_permission_dict}disabled{/if}>
{foreach $possible_grammems as $name}
<option value="{$name}" {if in_array($name, $editor.lemma.grms_raw)}selected{/if}>{$name}</option>
Expand All @@ -137,7 +137,7 @@
{else}
<p>
<input type="text" name="lemma_text" id="lemma_txt" value="{$smarty.get.text}"/>
<select name="lemma_gram[]" class="gram-selectpicker"
<select name="lemma_gram[]" id="lemma_gr" class="gram-selectpicker"
data-live-search="true" title="граммемы" multiple>
{foreach $possible_grammems as $id => $name}
<option value="{$name}">{$name}</option>
Expand Down

0 comments on commit f5575a0

Please sign in to comment.