From f5820d2aae45f60b6e6998b9ec2997c68a66fbf6 Mon Sep 17 00:00:00 2001 From: czaks Date: Sat, 20 Sep 2014 22:10:44 +0200 Subject: move a few options to a general tab in options panel --- js/options/general.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/options') 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(); }); + $("").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); }); -- cgit v1.3