Use JavaScript-based focussing, rathrer than

Reverts feb4ec3
This commit is contained in:
Katrin Leinweber 2019-08-26 15:12:51 +02:00
parent feb4ec31a9
commit 870a1b20a1
3 changed files with 21 additions and 6 deletions

View File

@ -7,7 +7,7 @@
<a class="button button-pill-left" href="javascript:{}" bind="extractLink"></a><a class="button button-pill-right" href="javascript:{}" bind="applyLink"></a>
</div>
<div class="history-panel-filter" bind="bodyControlsDiv">
<span bind="or_proj_filter"> </span><input type="text" size="30" bind="filterInput" autofocus />
<span bind="or_proj_filter"> </span><input type="text" size="30" bind="filterInput" id="idfilterInput" />
</div>
<div class="history-panel-body" bind="bodyDiv">
<div class="history-past" bind="pastDiv">
@ -17,4 +17,9 @@
<div class="history-future" bind="futureDiv">
<div class="history-highlight" bind="futureHighlightDiv"></div>
</div>
</div>'
</div>
<script>
function setFocusToTextBox(){
document.getElementById("idfilterInput").focus();
}
</script>

View File

@ -14,7 +14,7 @@
</tr>
<tr><td></td>
<td bind="or_views_separator"></td>
<td><input size="10" value="," bind="separatorInput" autofocus />
<td><input size="10" value="," bind="separatorInput" id="separatorInput" />
<input type="checkbox" bind="regexInput" id="$split-column-regex" />
<label for="$split-column-regex" bind="or_views_regExp"></label></td>
</tr>
@ -56,4 +56,9 @@
<button class="button" bind="cancelButton"></button>
</div>
</div>
</div>
</div>
<script>
function setFocusToTextBox(){
document.getElementById("separatorInput").focus();
}
</script>

View File

@ -14,7 +14,7 @@
</tr>
<tr><td></td>
<td bind="or_views_separator"></td>
<td><input size="10" value="," bind="separatorInput" autofocus />
<td><input size="10" value="," bind="separatorInput" id="separatorInput" />
<input type="checkbox" bind="regexInput" id="$split-column-regex" />
<label for="$split-multi-valued-cells-regex" bind="or_views_regExp"></label></td>
</tr>
@ -37,4 +37,9 @@
<button class="button" bind="cancelButton"></button>
</div>
</div>
</div>
</div>
<script>
function setFocusToTextBox(){
document.getElementById("separatorInput").focus();
}
</script>