var wasatbottom = ($(this).scrollTop() + $(this).height() >= this.scrollHeight);
if (eventData.event_type == "stderr" || eventData.event_type == "stdout") {
- $(this).append(eventData.properties.text);
+ if( eventData.prepend ) {
+ $(this).prepend(eventData.properties.text);
+ } else {
+ $(this).append(eventData.properties.text);
+ }
}
if (wasatbottom) {
});
}
};
-$('[data-object-uuid*=-d1hrv-] input[name="uuids[]"]').on('click', showhide_compare);
-showhide_compare();
+$(document).on('change', '[data-object-uuid*=-d1hrv-] input[name="uuids[]"]', function(e) {
+ if(e.target == this) {
+ showhide_compare();
+ }
+});
+$(document).on('ready ajax:success', showhide_compare);