##// END OF EJS Templates
Merge with BB
neko259 -
r2119:708b89d2 merge default
parent child Browse files
Show More
@@ -136,7 +136,7 b' function processVolumeUser(node) {'
136 136
137 137 function getHiddenPosts() {
138 138 var arr = Array();
139 var hiddenPosts = localStorage.getItem(ITEM_HIDDEN_POSTS);
139 var hiddenPosts = localStorage && localStorage.getItem(ITEM_HIDDEN_POSTS);
140 140 if (hiddenPosts) {
141 141 arr = JSON.parse(hiddenPosts);
142 142 }
@@ -144,6 +144,7 b' function getHiddenPosts() {'
144 144 }
145 145
146 146 function processPostHiding(posts) {
147 if (!window.localStorage) return;
147 148 var hiddenPosts = getHiddenPosts();
148 149
149 150 $.each(posts, function(index) {
@@ -267,7 +268,8 b' function addContextMenu() {'
267 268 name: gettext('Hide/show'),
268 269 callback: function(key, opt) {
269 270 togglePostHidden(postId);
270 }
271 },
272 visible: !!localStorage
271 273 },
272 274 edit: {
273 275 name: gettext('Edit'),
General Comments 0
You need to be logged in to leave comments. Login now