Fix inlining of hidden posts. Styling fixes of inlined posts.

This commit is contained in:
Nicolas Stepien 2012-05-16 16:20:38 +02:00
parent 075568e4d7
commit 02bf6efd1c
2 changed files with 15 additions and 5 deletions

View File

@ -3149,12 +3149,14 @@
return $.replace(inline, newInline);
},
clone: function(id, el) {
var clone, node, _i, _len, _ref;
var clone, node, post, _i, _len, _ref;
clone = $.el('div', {
className: 'postContainer inline',
id: "i_pc" + id
});
$.add(clone, el.cloneNode(true));
post = el.cloneNode(true);
post.hidden = false;
$.add(clone, post);
_ref = $$('[id]', clone);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
node = _ref[_i];
@ -4518,13 +4520,16 @@ div.opContainer {\
opacity: .5;\
}\
.inline {\
overflow: hidden;\
background-color: rgba(255, 255, 255, 0.15);\
border: 1px solid rgba(128, 128, 128, 0.5);\
display: table;\
margin: 2px;\
}\
.inline .post {\
background: none;\
border: none;\
margin: 0;\
padding: 0;\
}\
.filter_highlight.thread > .opContainer {\
box-shadow: inset 5px 0 rgba(255,0,0,0.5);\

View File

@ -2401,7 +2401,9 @@ QuoteInline =
clone = $.el 'div',
className: 'postContainer inline'
id: "i_pc#{id}"
$.add clone, el.cloneNode true
post = el.cloneNode true
post.hidden = false
$.add clone, post
for node in $$ '[id]', clone
# Don't mess with other features
node.id = "i_#{node.id}"
@ -3516,13 +3518,16 @@ div.opContainer {
opacity: .5;
}
.inline {
overflow: hidden;
background-color: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(128, 128, 128, 0.5);
display: table;
margin: 2px;
}
.inline .post {
background: none;
border: none;
margin: 0;
padding: 0;
}
.filter_highlight.thread > .opContainer {
box-shadow: inset 5px 0 rgba(255,0,0,0.5);