Sha256: 5514bc21e4dfb4c0b3c6ef8d3046959cca1a44a9e65ea29795bec877b43d9ad9
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
jQuery(function ($) { function setDeifinitionLink(script) { script = script.replace(/sub_process:\s+(\d+)\s*\n/, function(match, jobId) { return '<a href="/definitions/' + jobId + '">' + match + '</a>'; }); script = script.replace(/^wait:\s*(.+)\s*$/gm, function(match, option) { return 'wait: ' + option.replace(/(\d+)\/\w+/g, function(match, jobId){ return '<a href="/definitions/' + jobId + '">' + match + '</a>'; }); }); return script } $('pre.kuroko-script').each(function(){ var script = $(this).html(); $(this).html(setDeifinitionLink(script)); }); });
Version data entries
4 entries across 4 versions & 1 rubygems