Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit a877116

Browse files
ttyridalTorbjorn Tyridal
authored andcommitted
access to options page from popup
1 parent a5a2177 commit a877116

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

ext/src/browser_action/browser_action.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ <h1 style="display:inline-block;margin-bottom:0.8em;color:white">MasterPassword<
6868

6969

7070
<div id="sessionsetup" style="display:none">
71+
<div class="btntool btnconfig" style="position:absolute;right:1px;top:1px;"></div>
7172
<form>
7273
<label for="username">Your (full) name</label><br><input id="username" placeholder="Your Name"/><br>
7374
<label for="masterkey">Master password</label><br><input id="masterkey" type="password" placeholder="password" autocomplete="off"/><br>

ext/src/browser_action/browser_action.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,5 +253,10 @@ $('#siteconfig').on('change', 'select,input', save_site_changes_and_recalc);
253253
$('#sitename').on('change', save_site_changes_and_recalc);
254254
$('#loginname').on('change', save_site_changes_and_recalc);
255255

256+
257+
$('#mainPopup').on('click','.btnconfig',function(){
258+
chrome.tabs.create({'url': 'src/options/index.html'}, function(tab) { });
259+
});
260+
256261
}());
257262

gfx/makeicons.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ for sizes in 16 19 48 128; do
77
done
88

99
sizes=32
10-
for files in "exit" "gear" "delete"; do
10+
for files in "exit" "gear" "delete" "wrench"; do
1111
convert -background transparent ${files}.svg -resize ${sizes}x${sizes} ../ext/icons/${files}.png
1212
done

gfx/wrench.svg

Lines changed: 48 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)