Sha256: 4cd72bb797ff8fb61c663ebff8121cf1be1a156d41f4a598b532b5caa663ea64

Contents?: true

Size: 351 Bytes

Versions: 81

Compression:

Stored size: 351 Bytes

Contents

function rbbt_job(workflow, task, params, complete){
  var url = "/" + workflow + '/' + task;
  var async = undefined !== complete;

  response = get_ajax({
    url: url,
    async: async,
    method: 'POST',
    data: $.extend({_format: 'json'}, params)
  }, complete)

  if (async){
    return false;
  }else{
    return JSON.parse(response);
  }
}

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
rbbt-rest-1.4.4 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.4.3 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.4.2 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.4.1 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.4.0 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.32 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.31 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.30 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.29 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.28 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.27 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.26 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.25 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.24 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.23 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.22 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.21 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.20 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.19 share/views/public/js/rbbt/workflow.js
rbbt-rest-1.3.18 share/views/public/js/rbbt/workflow.js