Permalink
Browse files

Merge pull request #363 from ZogStriP/autofocus

autofocus the input in the "insert image" dialog when clicking on...
  • Loading branch information...
2 parents de1dd9c + 61dcd61 commit cd4d90802393e9a3523769cbab7a9d4862d641b3 @eviltrout eviltrout committed Mar 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/assets/javascripts/discourse/templates/image_selector.js.handlebars
@@ -1,4 +1,4 @@
-<ul class="nav nav-pills image-options">
+<ul class="nav nav-pills image-options">
<li title="local image" {{bindAttr class="view.localSelected:active"}}>
<a href="#" {{action selectLocal target="view"}}>{{i18n image_selector.from_my_computer}}</a>
</li>
@@ -23,7 +23,7 @@
{{else}}
<div class='modal-body'>
<form>
- <input type="text" name="text" id="fileurl-input"><br>
+ <input type="text" name="text" id="fileurl-input" autofocus><br>
<span class='description'>{{i18n image_selector.remote_tip}}</span> <br>
</form>
</div>

0 comments on commit cd4d908

Please sign in to comment.