Added text-focus-select directive for text inputs so it selects automatically the text when clicked.

This commit is contained in:
Gunther Brunner
2014-07-08 22:26:34 +09:00
parent f9fd3fd4bc
commit fb2e522945
8 changed files with 48 additions and 6 deletions

View File

@@ -14,7 +14,8 @@
form
.input-group
input.form-control(type='text', placeholder='http://...', autocomplete='off', ng-model='textURL',
typeahead='url for url in urlHistory | filter:$viewValue').form-control
typeahead='url for url in urlHistory | filter:$viewValue', text-focus-select).form-control
.input-group-btn
button(ng-click='openURL()', ng-disabled='!textURL', translate).btn.btn-primary-outline Open
//button(type='button', ng-disabled='!hasHistory()').btn.btn-primary-outline.dropdown-toggle