Fix visualization. Auto refresh preview on input change.

This commit is contained in:
xseris 2018-09-13 11:25:07 +02:00
parent de30b34e67
commit 81e8e4c2f6
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,10 @@
<td><label for="$column-separator-custom" id="or-import-custom"></label> <td><label for="$column-separator-custom" id="or-import-custom"></label>
<input bind="columnSeparatorInput" type="text" class="lightweight" size="5" /></td></tr> <input bind="columnSeparatorInput" type="text" class="lightweight" size="5" /></td></tr>
<tr><td colspan="2" id="or-import-escape"></td></tr> <tr><td colspan="2" id="or-import-escape"></td></tr>
<tr><td colspan="2" id="or-import-columnNames"></td></tr> </table>
<br>
<table>
<tr><td colspan="2" id="or-import-columnNames"></td></tr>
<tr><td><input style="width: 33em;" bind="columnNamesInput" /></td><td id="or-import-optional"></td></tr> <tr><td><input style="width: 33em;" bind="columnNamesInput" /></td><td id="or-import-optional"></td></tr>
</table></div></td> </table></div></td>

View File

@ -227,6 +227,7 @@ Refine.SeparatorBasedParserUI.prototype._initialize = function() {
}; };
this._optionContainer.find("input").bind("change", onChange); this._optionContainer.find("input").bind("change", onChange);
this._optionContainer.find("select").bind("change", onChange); this._optionContainer.find("select").bind("change", onChange);
this._optionContainerElmts.columnNamesInput.bind("keyup",onChange);
}; };
Refine.SeparatorBasedParserUI.prototype._scheduleUpdatePreview = function() { Refine.SeparatorBasedParserUI.prototype._scheduleUpdatePreview = function() {