Sha256: ed60b4d88650b9e66c54c0b3bc1508f955805a28e02dc516c4559aea892f2c4b

Contents?: true

Size: 1011 Bytes

Versions: 14

Compression:

Stored size: 1011 Bytes

Contents

$(document).ready(function() {	  
  
  get_workflow_plan = function(page) {
    var id = $('.re-menu-workflow-plan:first').attr('id').replace('re_menu_workflow_plan_', '')
    $.get('/re_workflows/' + id + '/plan?page=' + page, null, null, 'script');
  }
  
  get_workflow_plan(1);
  
  $('.re-xtra-workflow-next-enabled').live('click', function() {    
    var page = $(this).attr('href').replace('#', '')

    $('#re_workflow_plan').hide();
    $('#re_workflow_plan_pending').show();
    
    get_workflow_plan(page);
    return false;  
  });  
  $('.re-xtra-workflow-next-disabled').live('click', function() {    
    return false;
  });  

  $('.re-xtra-workflow-prev-enabled').live('click', function() {    
    var page = $(this).attr('href').replace('#', '')

    $('#re_workflow_plan').hide();
    $('#re_workflow_plan_pending').show();
    
    get_workflow_plan(page);
    return false;  
  });  
  $('.re-xtra-workflow-prev-disabled').live('click', function() {    
    return false;
  });  

});


Version data entries

14 entries across 13 versions & 1 rubygems

Version Path
rules_engine-0.3.3 spec/rails_3_0_0_root/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.3.3 generators/manifests/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.3.2 generators/manifests/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.3.1 generators/manifests/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.3.0 generators/manifests/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.2.0 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.10 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.9 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.8 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.7 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.6 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.5 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.4 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js
rules_engine-0.1.3 rails_generators/templates/public/javascripts/rules_engine/re_workflow_plan.js