Merge branch 'master' into menu
This commit is contained in:
commit
9f328b0038
@ -3400,7 +3400,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
cleanPost: function(root) {
|
cleanPost: function(root) {
|
||||||
var child, el, els, now, post, _i, _j, _len, _len1, _ref;
|
var child, el, els, inline, inlined, now, post, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2;
|
||||||
post = $('.post', root);
|
post = $('.post', root);
|
||||||
_ref = Array.prototype.slice.call(root.childNodes);
|
_ref = Array.prototype.slice.call(root.childNodes);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
@ -3409,11 +3409,21 @@
|
|||||||
$.rm(child);
|
$.rm(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_ref1 = $$('.inline', post);
|
||||||
|
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
|
||||||
|
inline = _ref1[_j];
|
||||||
|
$.rm(inline);
|
||||||
|
}
|
||||||
|
_ref2 = $$('.inlined', post);
|
||||||
|
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
|
||||||
|
inlined = _ref2[_k];
|
||||||
|
$.rmClass(inlined, 'inlined');
|
||||||
|
}
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
els = $$('[id]', root);
|
els = $$('[id]', root);
|
||||||
els.push(root);
|
els.push(root);
|
||||||
for (_j = 0, _len1 = els.length; _j < _len1; _j++) {
|
for (_l = 0, _len3 = els.length; _l < _len3; _l++) {
|
||||||
el = els[_j];
|
el = els[_l];
|
||||||
el.id = "" + now + "_" + el.id;
|
el.id = "" + now + "_" + el.id;
|
||||||
}
|
}
|
||||||
$.rmClass(root, 'forwarded');
|
$.rmClass(root, 'forwarded');
|
||||||
|
|||||||
@ -2675,6 +2675,12 @@ Get =
|
|||||||
for child in Array::slice.call root.childNodes
|
for child in Array::slice.call root.childNodes
|
||||||
$.rm child unless child is post
|
$.rm child unless child is post
|
||||||
|
|
||||||
|
# Remove inlined posts inside of this post.
|
||||||
|
for inline in $$ '.inline', post
|
||||||
|
$.rm inline
|
||||||
|
for inlined in $$ '.inlined', post
|
||||||
|
$.rmClass inlined, 'inlined'
|
||||||
|
|
||||||
# Don't mess with other features
|
# Don't mess with other features
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
els = $$ '[id]', root
|
els = $$ '[id]', root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user