{:uriI"file:///Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts/kuroko2/job_instances.js?type=application/javascript&pipeline=self&id=a6719b4736ba7da79a73c7a2715cb40183f9e4b0f54643df2f86c1a73ab6489d:ET:load_pathI"@/Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts;T: filenameI"Y/Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts/kuroko2/job_instances.js;T: nameI"kuroko2/job_instances;T:logical_pathI""kuroko2/job_instances.self.js;T:content_typeI"application/javascript;T:sourceI"$ // Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. jQuery(function ($) { var logIntervalId; var updateInstance = function () { var instancePath = $('#instance').data("instance-path"); $.get(instancePath, function (data) { $('#instance').replaceWith(data); }); }; var updateLogs = function () { var logsPath = $('#logs').data("logs-path"); $.get(logsPath, function (data) { $('#logs').html($(data).find('#logs').html()); if (!$('#logs table').data("reload")) { clearInterval(logIntervalId); updateInstance(); } }); }; var updateTokens = function () { var tokensPath = $('#tokens').data("tokens-path"); $.get(tokensPath, function (data) { $('#tokens').replaceWith(data); }); }; var executionLogToken; var executionLogIntervalId; var appendExecutionLogs = function () { var apiPath = $('#execution_logs').data('api-path'); $.getJSON(apiPath, { "token": executionLogToken }, function(data) { data['events'].forEach(function(event) { $('#execution_log_body').append( $('