Added favicon resolving to URL input.

Added blur event after entering URL.
Focus screen after entering URL.
This commit is contained in:
Gunther Brunner
2014-07-31 20:30:43 +09:00
parent 8696f833c2
commit 4edcb387d4
15 changed files with 201 additions and 10 deletions

View File

@@ -12,12 +12,14 @@
//i.fa.fa-step-forward.pull-right(ng-click='forward()', title='{{"Go Forward"|translate}}')
//i.fa.fa-step-backward.pull-right(ng-click='back()', title='{{"Go Back"|translate}}')
.widget-content.padded
form(enable-autofill, action='about:blank')
form(enable-autofill, action='about:blank', ng-submit='openUrl($event)')
//form(name='navigationForm', method='post', action='about:blank', target='_autofill')
.input-group
.input-group.url-input-container
input.form-control(type='text', name='textURL', placeholder='http://...',
autocomplete='url', ng-model='textURL', text-focus-select,
accesskey='N', tabindex='10').form-control
autocapitalize='off', spellcheck='false', blur-element='blurUrl'
accesskey='N', tabindex='10', ng-change='textUrlChanged()').form-control
img(ng-src='{{urlFavicon}}')
.input-group-btn
button(ng-click='openURL()', ng-disabled='!textURL', translate).btn.btn-primary-outline Open