Removed midcol and rank sizing from replace_things function

This commit is contained in:
ughblah
2012-03-19 16:19:59 -05:00
committed by Logan Hanks
parent a516ca9ed1
commit 1d84f7e5f5

View File

@@ -448,8 +448,6 @@ $.fn.replace_things = function(things, keep_children, reveal, stubs) {
* case of a comment tree, flags whether or not the new thing has
* the thread present) while "reveal" determines whether or not to
* animate the transition from old to new. */
var midcol = $(".midcol:visible:first").css("width");
var numcol = $(".rank:visible:first").css("width");
var self = this;
return $.map(things, function(thing) {
var data = thing.data;
@@ -465,10 +463,6 @@ $.fn.replace_things = function(things, keep_children, reveal, stubs) {
}
existing.after($.unsafe(data.content));
var new_thing = existing.next();
if($.defined(midcol)) {
new_thing.find(".midcol").css("width", midcol).end()
.find(".rank").css("width", midcol);
}
if(keep_children) {
/* show the new thing */
new_thing.show()