Skip to content

Commit 390b2d5

Browse files
authored
Merge pull request #477 from DirkyJerky/master
Make search field require input before searching
2 parents cbe47b7 + e1a35f7 commit 390b2d5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/templates/application.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
placeholder="Search"
2222
value=search
2323
autofocus="autofocus"
24-
tabindex="1"}}
24+
tabindex="1"
25+
required=true}}
2526
</form>
2627

2728
<div class='nav'>
@@ -101,7 +102,8 @@
101102
placeholder="Search"
102103
value=search
103104
autocorrect="off"
104-
tabindex="1"}}
105+
tabindex="1"
106+
required=true}}
105107
</form>
106108

107109
<div id="main" class='inner-content'>

app/templates/catch-all.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
{{input type="text" class="search"
77
placeholder="Search"
88
value=search
9-
enter="search"}}
9+
enter="search"
10+
required=true}}
1011
</p>

0 commit comments

Comments
 (0)