diff options
| author | czaks <marcin@6irc.net> | 2014-09-20 22:10:44 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-09-20 22:10:44 +0200 |
| commit | f5820d2aae45f60b6e6998b9ec2997c68a66fbf6 (patch) | |
| tree | b68fa3b1922b4f1802c8272884a453b7b39e4c9b /js/options/general.js | |
| parent | ea3c571d6c92af61540af32d15bf433cfc53879c (diff) | |
move a few options to a general tab in options panel
Diffstat (limited to 'js/options/general.js')
| -rw-r--r-- | js/options/general.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/options/general.js b/js/options/general.js index f95ba04f..c0652269 100644 --- a/js/options/general.js +++ b/js/options/general.js @@ -37,6 +37,13 @@ $(function(){ document.location.reload(); }); + $("<button>"+_("Erase")+"</button>").appendTo(stor).on("click", function() { + if (confirm(_("Are you sure you want to erase your storage? This involves your hidden threads, watched threads, post password and many more."))) { + localStorage.clear(); + document.location.reload(); + } + }); + $("#style-select").detach().css({float:"none","margin-bottom":0}).appendTo(tab.content); }); |
