Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

Add options page to enable/disable auto-submit for filled forms #95

Merged
merged 2 commits into from
Sep 15, 2017

Conversation

jayme-github
Copy link
Contributor

I've added a very(!) simple options page to support disabling of auto-submit for forms.

Maybe someone can do some testing with firefox as I'm not sure if this is working cross browser (albeit I've used localStorage in favor of the, I guess, browser specific storage or chrome.storage APIs).

fixes #94

@maximbaz
Copy link
Member

Hey @jayme-github, thanks for the PR! Although github doesn't show code conflicts, with all the recent PRs merged I think your code is not working anymore. I tried to fix some obvious things, but all I got is autoLogin being always disabled, even if I enable it in options.

If you are still interested in getting this merged, could you please have another look? Maybe I'm missing something obvious.

@@ -9,6 +9,12 @@
"background": {
"persistent": false,
"scripts": ["background.js"]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comma is missing :)

@@ -0,0 +1,18 @@
function save_options() {
var autoSubmit = document.getElementById('auto-submit').checked;
localStorage.setItem('autoSubmit', autoSubmit);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should close settings on Save? I think a simple window.close(); would do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, added window.close();

@jayme-github
Copy link
Contributor Author

Sorry for pushing broken stuff, I needed to leave quickly yesterday.

Rebased to current master and fixed functionality.

@maximbaz maximbaz merged commit 679d0c8 into browserpass:master Sep 15, 2017
@maximbaz
Copy link
Member

Works like a charm, thanks :)

@maximbaz maximbaz mentioned this pull request Sep 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

autofill without submit
2 participants