mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing autofocus on content types / content parts screens.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
(function($) {
|
||||
$(function() {
|
||||
$("#search-box").focus().on("keyup", function (e) {
|
||||
$("#search-box").on("keyup", function (e) {
|
||||
var text = $(this).val();
|
||||
|
||||
if (e.keyCode == 13) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
<fieldset class="bulk-actions">
|
||||
<label for="search-box">@T("Filter:")</label>
|
||||
<input id="search-box" class="text" type="text" />
|
||||
<input id="search-box" class="text" type="text" autofocus="autofocus" />
|
||||
</fieldset>
|
||||
<ul class="contentItems">
|
||||
@foreach (var type in Model.Types) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<fieldset class="bulk-actions">
|
||||
<label for="search-box">@T("Filter:")</label>
|
||||
<input id="search-box" class="text" type="text" />
|
||||
<input id="search-box" class="text" type="text" autofocus="autofocus" />
|
||||
</fieldset>
|
||||
<ul class="contentItems">
|
||||
@foreach (var type in Model.Parts) {
|
||||
|
||||
Reference in New Issue
Block a user