Skip to content

Commit 48df8bf

Browse files
committed
New javascript for new toggle
Former-commit-id: b59ae11
1 parent a5281cc commit 48df8bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

options.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ $("#sortable").sortable({
3838
}
3939
});
4040

41-
$(":radio").click(function(button) {
42-
chrome.storage.sync.set({'auto-detect': button.target.id}, function() { console.log("Saved Auto-Detect Preferences"); });
41+
$("#myonoffswitch").click(function(button) { // Save auto-detect settings
42+
chrome.storage.sync.set({'auto-detect': button.target.id}, function() {
43+
console.log("Saved Auto-Detect Preferences");
44+
});
45+
});
4346
});
4447

4548
$("#sortable").disableSelection();

0 commit comments

Comments
 (0)