Skip to content

Commit

Permalink
Added search validation for wiki sidebar search
Browse files Browse the repository at this point in the history
  • Loading branch information
namangupta01 committed Feb 7, 2018
1 parent 2e26a80 commit 353a8f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/views/dashboard/_wiki.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
<div class="col-lg-8 col-md-7 col-sm-7 col-xs-7">
<div class="input-group">
<form class="search-form-wiki" role="search" autocomplete="off">
<input type="text" class="search-wiki form-control input-sm" style="width:70%;" placeholder="<%= t('dashboard._wiki.search') %>">
<input type="text" class="search-wiki form-control input-sm" id="sidebar-searchform-input" style="width:70%;" placeholder="<%= t('dashboard._wiki.search') %>">
<span class="input-group-btn">
<button class="btn btn-sm btn-default" type="submit"><i class="fa fa-search"></i></button>
</span>
</form>

<script type="text/javascript">
document.getElementById("sidebar-searchform-input").setCustomValidity('Please! Type something to search');
</script>

</div>
</div>

Expand Down

0 comments on commit 353a8f5

Please sign in to comment.