Fixed autofill for HTTPS.

Added dummy API endpoint for autofill POST requests.

Autofill also reads the CSRF token from cookies and doesn't require an 'about:blank' anymore on the forms.
This commit is contained in:
Gunther Brunner
2015-01-06 18:35:23 +09:00
parent 3e2628b235
commit 91b1861d8d
8 changed files with 46 additions and 14 deletions

View File

@@ -8,11 +8,11 @@
i.fa.fa-book
.widget-content.padded
iframe(src="about:blank", name="_autofill2", style="display:none")
form(method="post", action="about:blank", target="_autofill2")
// TODO: find why autofill doesn't work here
form(method='post', enable-autofill, ng-submit='run(command)')
.input-group.form-inline
input(type=text, ng-model='command', ng-enter='run(command)', text-focus-select,
//autocapitalize='off', spellcheck='false',
input(type=text, ng-model='command', Xtext-focus-select,
autocapitalize='off', spellcheck='false',
tabindex='30', accesskey='S', autocomplete='on').form-control.shell-input
span.input-group-btn
// , tooltip='{{"Run Command"|translate}}'