run_pipeline_button_state();
} );
+ $(document).on('ajax:complete ready', function() {
+ var a = $('.arv-log-event-listener');
+ if (a.length > 0) {
+ $('.arv-log-event-listener').each(function() {
+ subscribeToEventLog(this.id, this.getAttribute('data-object-uuid'));
+ });
+ }
+ });
+
+ $(document).on('arv-log-event', '.arv-log-event-handler-append-logs', function(event, eventData){
+ parsedData = JSON.parse(eventData);
+ summary = parsedData.summary;
+ properties = parsedData.properties;
+ updatedProperties = null;
+ if (properties !== null) {
+ new_attributes = properties.new_attributes;
+ if (new_attributes !== null) {
+ updatedProperties = JSON.stringify(properties.new_attributes);
+ }
+ }
+
+ if (updatedProperties !== null) {
+ $(this).append(updatedProperties + "<br/><br/>");
+ } else {
+ $(this).append(summary + "<br/><br/>");
+ }
+ });
+
})();