The launch button stopped working with latest dev update.

I traced the error to be on line 216 in taskconsole.js

Old code:
$('.maestro_taskconsole_interactivetaskcontent input[type=submit], input[type=button]').click(function() {

Fix:
$('.maestro_taskconsole_interactivetaskcontent input[type=button]').click(function() {

Comments

_randy’s picture

This does indeed let the launch happen -- however it seems to break the interactive function's ability to complete.

I found that adding one line of JS to the taskconsole.js file seems to fix all use cases:

Original taskconsole.js line 214-217:

jQuery(function($) {
  $('.maestro_taskconsole_interactivetaskcontent input[type=submit], input[type=button]').click(function() {
    var id = jQuery(this).parents('tr').filter(".maestro_taskconsole_interactivetaskcontent").attr('id');
    var idparts = id.split('maestro_actionrec');
    var taskid = idparts[1];

Updated taskconsole.js line 214-218:

jQuery(function($) {
  $('.maestro_taskconsole_interactivetaskcontent input[type=submit], input[type=button]').click(function() {
    if (this.id == 'taskConsoleLaunchNewProcess') return;
    var id = jQuery(this).parents('tr').filter(".maestro_taskconsole_interactivetaskcontent").attr('id');
    var idparts = id.split('maestro_actionrec');
    var taskid = idparts[1];

I just added in the "if(this.id....." js line.

newmember’s picture

I updating lines 214-218
Tested and worked for me in Chrome.

_randy’s picture

Status: Active » Closed (fixed)