fix not working cluster functions when it select japanese lang.

This commit is contained in:
Akihiko Tomokane 2016-11-15 16:34:19 +09:00
parent b14dd56b80
commit 89f0752e5f
2 changed files with 78 additions and 78 deletions

View File

@ -18,15 +18,15 @@
<td>
<div class="binning-controls"><span bind="or_dialog_keying"></span>
<select bind="keyingFunctionSelector">
<option selected="true" bind="or_dialog_fingerprint"></option>
<option bind="or_dialog_ngram"></option>
<option bind="or_dialog_metaphone"></option>
<option bind="or_dialog_phonetic"></option>
<option selected="true" bind="or_dialog_fingerprint" value="fingerprint"></option>
<option bind="or_dialog_ngram" value="ngram-fingerprint"></option>
<option bind="or_dialog_metaphone" value="metaphone3"></option>
<option bind="or_dialog_phonetic" value="cologne-phonetic"></option>
</select></div>
<div class="knn-controls hidden"><span bind="or_dialog_distance"></span>
<select bind="distanceFunctionSelector">
<option selected="true" bind="or_dialog_leven"></option>
<option bind="or_dialog_ppm"></option>
<option selected="true" bind="or_dialog_leven" value="levenshtein"></option>
<option bind="or_dialog_ppm" value="PPM"></option>
</select></div>
</td>
<td>

View File

@ -89,7 +89,7 @@ ClusteringDialog.prototype._createDialog = function() {
});
var changer = function() {
self._function = $(this).find("option:selected").text();
self._function = $(this).find("option:selected").val();
$(".function-params").hide();
$("#" + self._function + "-params").show();
params_changer();