1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

Add new login with save from notification bar

This commit is contained in:
Kyle Spearrin
2016-12-30 14:25:57 -05:00
parent 5890449ca9
commit 2310f5ebdf
5 changed files with 142 additions and 38 deletions

View File

@@ -26,16 +26,13 @@
<tbody>
<tr>
<td>Should bitwarden remember this password for you?</td>
<td align="right" width="200">
<button class="add-save">Save Site</button>
<button class="add-never">Never</button>
<td align="right" width="150">
<button class="add-save">Yes, Save Now</button>
</td>
</tr>
</tbody>
</table>
<div id="template-alert">
This is an alert.
</div>
<div id="template-alert"></div>
</div>
<script src="../lib/jquery/jquery.js"></script>
<script src="bar.js"></script>

View File

@@ -7,8 +7,14 @@
setContent(template_add);
var add = $('#template-add-clone'),
addButton = $('#template-add-clone.add-save'),
neverButton = $('#template-add-clone.add-never');
addButton = $('#template-add-clone .add-save');
$(addButton).click(function (e) {
e.preventDefault();
chrome.runtime.sendMessage({
command: 'bgAddSave'
});
});
}
else if (getQueryVariable('info')) {
setContent(template_alert);
@@ -28,7 +34,7 @@
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (pair[0] == variable) {
if (pair[0] === variable) {
return pair[1];
}
}