Merge branch 'v3'
This commit is contained in:
commit
a3437ff0ae
@ -3446,6 +3446,11 @@
|
|||||||
Recursive.apply('hide', this, label, makeStub, true);
|
Recursive.apply('hide', this, label, makeStub, true);
|
||||||
Recursive.add('hide', this, label, makeStub, true);
|
Recursive.add('hide', this, label, makeStub, true);
|
||||||
}
|
}
|
||||||
|
PostHiding.saveHiddenState(this, {
|
||||||
|
thisPost: true,
|
||||||
|
hideRecursively: hideRecursively,
|
||||||
|
makeStub: makeStub
|
||||||
|
});
|
||||||
if (!this.isReply) {
|
if (!this.isReply) {
|
||||||
this.thread.hide();
|
this.thread.hide();
|
||||||
return;
|
return;
|
||||||
@ -3487,6 +3492,11 @@
|
|||||||
Recursive.apply('show', this, true);
|
Recursive.apply('show', this, true);
|
||||||
Recursive.rm('hide', this);
|
Recursive.rm('hide', this);
|
||||||
}
|
}
|
||||||
|
PostHiding.saveHiddenState(this, {
|
||||||
|
thisPost: true,
|
||||||
|
hideRecursively: showRecursively,
|
||||||
|
makeStub: !!this.nodes.stub
|
||||||
|
});
|
||||||
if (!this.isReply) {
|
if (!this.isReply) {
|
||||||
this.thread.show();
|
this.thread.show();
|
||||||
return;
|
return;
|
||||||
@ -7056,7 +7066,6 @@
|
|||||||
} else {
|
} else {
|
||||||
post.hide('Manually hidden');
|
post.hide('Manually hidden');
|
||||||
}
|
}
|
||||||
PostHiding.saveHiddenState(post);
|
|
||||||
if (post.isReply) {
|
if (post.isReply) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -7233,15 +7242,17 @@
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PostHiding.saveHiddenState(post, {
|
if (!thisPost) {
|
||||||
thisPost: thisPost,
|
PostHiding.saveHiddenState(post, {
|
||||||
hideRecursively: replies,
|
thisPost: false,
|
||||||
makeStub: makeStub
|
hideRecursively: replies,
|
||||||
});
|
makeStub: makeStub
|
||||||
|
});
|
||||||
|
}
|
||||||
return $.event('CloseMenu');
|
return $.event('CloseMenu');
|
||||||
},
|
},
|
||||||
show: function(post) {
|
show: function(post) {
|
||||||
var parent, replies, thisPost, val;
|
var parent, replies, thisPost;
|
||||||
parent = this.parentNode;
|
parent = this.parentNode;
|
||||||
thisPost = $('input[name=thisPost]', parent).checked;
|
thisPost = $('input[name=thisPost]', parent).checked;
|
||||||
replies = $('input[name=replies]', parent).checked;
|
replies = $('input[name=replies]', parent).checked;
|
||||||
@ -7253,12 +7264,13 @@
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
val = {
|
if (!thisPost) {
|
||||||
thisPost: !thisPost,
|
PostHiding.saveHiddenState(post, {
|
||||||
hideRecursively: !replies,
|
thisPost: false,
|
||||||
makeStub: !!post.nodes.stub
|
hideRecursively: !replies,
|
||||||
};
|
makeStub: !!post.nodes.stub
|
||||||
PostHiding.saveHiddenState(post, val);
|
});
|
||||||
|
}
|
||||||
return $.event('CloseMenu');
|
return $.event('CloseMenu');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3500,6 +3500,11 @@
|
|||||||
Recursive.apply('hide', this, label, makeStub, true);
|
Recursive.apply('hide', this, label, makeStub, true);
|
||||||
Recursive.add('hide', this, label, makeStub, true);
|
Recursive.add('hide', this, label, makeStub, true);
|
||||||
}
|
}
|
||||||
|
PostHiding.saveHiddenState(this, {
|
||||||
|
thisPost: true,
|
||||||
|
hideRecursively: hideRecursively,
|
||||||
|
makeStub: makeStub
|
||||||
|
});
|
||||||
if (!this.isReply) {
|
if (!this.isReply) {
|
||||||
this.thread.hide();
|
this.thread.hide();
|
||||||
return;
|
return;
|
||||||
@ -3541,6 +3546,11 @@
|
|||||||
Recursive.apply('show', this, true);
|
Recursive.apply('show', this, true);
|
||||||
Recursive.rm('hide', this);
|
Recursive.rm('hide', this);
|
||||||
}
|
}
|
||||||
|
PostHiding.saveHiddenState(this, {
|
||||||
|
thisPost: true,
|
||||||
|
hideRecursively: showRecursively,
|
||||||
|
makeStub: !!this.nodes.stub
|
||||||
|
});
|
||||||
if (!this.isReply) {
|
if (!this.isReply) {
|
||||||
this.thread.show();
|
this.thread.show();
|
||||||
return;
|
return;
|
||||||
@ -7107,7 +7117,6 @@
|
|||||||
} else {
|
} else {
|
||||||
post.hide('Manually hidden');
|
post.hide('Manually hidden');
|
||||||
}
|
}
|
||||||
PostHiding.saveHiddenState(post);
|
|
||||||
if (post.isReply) {
|
if (post.isReply) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -7284,15 +7293,17 @@
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PostHiding.saveHiddenState(post, {
|
if (!thisPost) {
|
||||||
thisPost: thisPost,
|
PostHiding.saveHiddenState(post, {
|
||||||
hideRecursively: replies,
|
thisPost: false,
|
||||||
makeStub: makeStub
|
hideRecursively: replies,
|
||||||
});
|
makeStub: makeStub
|
||||||
|
});
|
||||||
|
}
|
||||||
return $.event('CloseMenu');
|
return $.event('CloseMenu');
|
||||||
},
|
},
|
||||||
show: function(post) {
|
show: function(post) {
|
||||||
var parent, replies, thisPost, val;
|
var parent, replies, thisPost;
|
||||||
parent = this.parentNode;
|
parent = this.parentNode;
|
||||||
thisPost = $('input[name=thisPost]', parent).checked;
|
thisPost = $('input[name=thisPost]', parent).checked;
|
||||||
replies = $('input[name=replies]', parent).checked;
|
replies = $('input[name=replies]', parent).checked;
|
||||||
@ -7304,12 +7315,13 @@
|
|||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
val = {
|
if (!thisPost) {
|
||||||
thisPost: !thisPost,
|
PostHiding.saveHiddenState(post, {
|
||||||
hideRecursively: !replies,
|
thisPost: false,
|
||||||
makeStub: !!post.nodes.stub
|
hideRecursively: !replies,
|
||||||
};
|
makeStub: !!post.nodes.stub
|
||||||
PostHiding.saveHiddenState(post, val);
|
});
|
||||||
|
}
|
||||||
return $.event('CloseMenu');
|
return $.event('CloseMenu');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,7 +58,6 @@ PostHiding =
|
|||||||
post.show()
|
post.show()
|
||||||
else
|
else
|
||||||
post.hide 'Manually hidden'
|
post.hide 'Manually hidden'
|
||||||
PostHiding.saveHiddenState post
|
|
||||||
return if post.isReply
|
return if post.isReply
|
||||||
|
|
||||||
Index.updateHideLabel()
|
Index.updateHideLabel()
|
||||||
@ -173,7 +172,7 @@ PostHiding =
|
|||||||
Recursive.add 'hide', post, label, makeStub, true
|
Recursive.add 'hide', post, label, makeStub, true
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
PostHiding.saveHiddenState post, {thisPost, hideRecursively: replies, makeStub}
|
PostHiding.saveHiddenState post, {thisPost: false, hideRecursively: replies, makeStub} unless thisPost
|
||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
show: (post) ->
|
show: (post) ->
|
||||||
parent = @parentNode
|
parent = @parentNode
|
||||||
@ -186,6 +185,5 @@ PostHiding =
|
|||||||
Recursive.rm 'hide', post, true
|
Recursive.rm 'hide', post, true
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
val = {thisPost: !thisPost, hideRecursively: !replies, makeStub: !!post.nodes.stub}
|
PostHiding.saveHiddenState post, {thisPost: false, hideRecursively: !replies, makeStub: !!post.nodes.stub} unless thisPost
|
||||||
PostHiding.saveHiddenState post, val
|
|
||||||
$.event 'CloseMenu'
|
$.event 'CloseMenu'
|
||||||
|
|||||||
@ -179,6 +179,8 @@ class Post
|
|||||||
Recursive.apply 'hide', @, label, makeStub, true
|
Recursive.apply 'hide', @, label, makeStub, true
|
||||||
Recursive.add 'hide', @, label, makeStub, true
|
Recursive.add 'hide', @, label, makeStub, true
|
||||||
|
|
||||||
|
PostHiding.saveHiddenState @, {thisPost: true, hideRecursively: hideRecursively, makeStub: makeStub}
|
||||||
|
|
||||||
if !@isReply
|
if !@isReply
|
||||||
@thread.hide()
|
@thread.hide()
|
||||||
return
|
return
|
||||||
@ -211,6 +213,8 @@ class Post
|
|||||||
Recursive.apply 'show', @, true
|
Recursive.apply 'show', @, true
|
||||||
Recursive.rm 'hide', @
|
Recursive.rm 'hide', @
|
||||||
|
|
||||||
|
PostHiding.saveHiddenState @, {thisPost: true, hideRecursively: showRecursively, makeStub: !!@nodes.stub}
|
||||||
|
|
||||||
if !@isReply
|
if !@isReply
|
||||||
@thread.show()
|
@thread.show()
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user