Skip to content

Commit

Permalink
#10 add auto fill without auto submit menu option
Browse files Browse the repository at this point in the history
  • Loading branch information
jvenant committed Apr 3, 2014
1 parent 43a0cef commit 253e660
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/chrome/content/browserOverlay.js
Expand Up @@ -78,11 +78,13 @@ PassFF.BrowserOverlay = {
} else {
let passwordLabel = this._stringBundle.GetStringFromName("passff.menu.copy_password");
let loginLabel = this._stringBundle.GetStringFromName("passff.menu.copy_login");
let fillLabel = this._stringBundle.GetStringFromName("passff.menu.fill");
let fillAndSubmitLabel = this._stringBundle.GetStringFromName("passff.menu.fill_and_submit");
let gotoFillAndSubmitLabel = this._stringBundle.GetStringFromName("passff.menu.goto_fill_and_submit");

menuPopupDyn.appendChild(this.createSubmenu(fillAndSubmitLabel, "fill_and_submit", PassFF.BrowserOverlay.autoFill));
menuPopupDyn.appendChild(this.createSubmenu(gotoFillAndSubmitLabel, "goto_fill_and_submit", PassFF.BrowserOverlay.gotoAutoFill));
menuPopupDyn.appendChild(this.createSubmenu(fillLabel, "fill", PassFF.BrowserOverlay.autoFill));
menuPopupDyn.appendChild(this.createSubmenu(fillAndSubmitLabel, "fill_and_submit", PassFF.BrowserOverlay.autoFillAndSubmit));
menuPopupDyn.appendChild(this.createSubmenu(gotoFillAndSubmitLabel, "goto_fill_and_submit", PassFF.BrowserOverlay.gotoAutoFillAndSubmit));
menuPopupDyn.appendChild(this.createSubmenu(loginLabel, "login", PassFF.BrowserOverlay.copyToClipboard));
menuPopupDyn.appendChild(this.createSubmenu(passwordLabel, "password", PassFF.BrowserOverlay.copyToClipboard));
}
Expand Down Expand Up @@ -115,10 +117,14 @@ PassFF.BrowserOverlay = {
autoFill : function(event) {
event.stopPropagation();
PassFF.Page.fillInputs(PassFF.BrowserOverlay.getPasswordData(event));
},

autoFillAndSubmit : function(event) {
PassFF.BrowserOverlay.autoFill(event);
PassFF.Page.submit(window.content.location.href);
},

gotoAutoFill : function(event) {
gotoAutoFillAndSubmit : function(event) {
let item = event.target.parentNode.parentNode.item;
PassFF.Page.itemToUse = item;
PassFF.BrowserOverlay.goToItemUrl(item, event);
Expand Down
1 change: 1 addition & 0 deletions src/chrome/locale/en-US/strings.properties
Expand Up @@ -4,5 +4,6 @@ passff.menu.all=All
passff.menu.refresh=Refresh
passff.menu.copy_password=Copy password
passff.menu.copy_login=Copy login
passff.menu.fill=Fill
passff.menu.fill_and_submit=Fill and submit
passff.menu.goto_fill_and_submit=Goto, fill and submit

0 comments on commit 253e660

Please sign in to comment.