##// 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 function getHiddenPosts() {
137 function getHiddenPosts() {
138 var arr = Array();
138 var arr = Array();
139 var hiddenPosts = localStorage.getItem(ITEM_HIDDEN_POSTS);
139 var hiddenPosts = localStorage && localStorage.getItem(ITEM_HIDDEN_POSTS);
140 if (hiddenPosts) {
140 if (hiddenPosts) {
141 arr = JSON.parse(hiddenPosts);
141 arr = JSON.parse(hiddenPosts);
142 }
142 }
@@ -144,6 +144,7 b' function getHiddenPosts() {'
144 }
144 }
145
145
146 function processPostHiding(posts) {
146 function processPostHiding(posts) {
147 if (!window.localStorage) return;
147 var hiddenPosts = getHiddenPosts();
148 var hiddenPosts = getHiddenPosts();
148
149
149 $.each(posts, function(index) {
150 $.each(posts, function(index) {
@@ -267,7 +268,8 b' function addContextMenu() {'
267 name: gettext('Hide/show'),
268 name: gettext('Hide/show'),
268 callback: function(key, opt) {
269 callback: function(key, opt) {
269 togglePostHidden(postId);
270 togglePostHidden(postId);
270 }
271 },
272 visible: !!localStorage
271 },
273 },
272 edit: {
274 edit: {
273 name: gettext('Edit'),
275 name: gettext('Edit'),
General Comments 0
You need to be logged in to leave comments. Login now