summaryrefslogtreecommitdiff
path: root/js/post-hider.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/post-hider.js')
-rw-r--r--js/post-hider.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/post-hider.js b/js/post-hider.js
index 625b28fa..2aefa39f 100644
--- a/js/post-hider.js
+++ b/js/post-hider.js
@@ -2,11 +2,11 @@ function phGetCookieName(id) {
return "ph_hide_" + id;
}
function phPostHidden(id) {
- return ($.cookie(phGetCookieName(id)) != null);
+ return (localStorage.getItem(phGetCookieName(id)) != null);
}
function phPostToggle(id) {
- if(phPostHidden(id)) { $.cookie(phGetCookieName(id),null); }
- else { $.cookie(phGetCookieName(id),"yes"); }
+ if(phPostHidden(id)) { localStorage.removeItem(phGetCookieName(id)); }
+ else { localStorage.setItem(phGetCookieName(id),"yes"); }
}
function phGetInnerText(id) {
if(phPostHidden(id)) { return "[+]"; }