+ var stream_metabox = document.getElementById("stream-metabox");
+ var should_scroll = false;
+ if(stream_metabox.scrollTop === (stream_metabox.scrollHeight
+ - stream_metabox.offsetHeight)) {
+ should_scroll = true;
+ }
+ document.getElementById("main-input").value = "";
+ new_entry.setAttribute("class", "stream-entry");