Sha256: d377c68a3193f2582ea3a8d85d46939fe7974ea1c6de0f2b463356d557886e8c

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

re_process_list_get = function(page) {
  var plan_id = $('.re-menu-process-list:first').attr('id').replace('re_menu_process_list_', '')
  
  if (plan_id.length == 0 || plan_id == "0")
    $.get('/re_processes?page=' + page, null, null, 'script');
  else
    $.get('/re_plans/' + plan_id + '/re_process?page=' + page, null, null, 'script');
}  

$(document).ready(function() {	  
  
  re_process_list_get(1);
  
  $('.re-xtra-process-next-enabled').live('click', function() {    
    var page = $(this).attr('href').replace('#', '')

    $('#re_process_list').hide();
    $('#re_process_list_pending').show();
    
    re_process_list_get(page);
    return false;  
  });  
  
  $('.re-xtra-process-next-disabled').live('click', function() {    
    return false;
  });  

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

    $('#re_process_list').hide();
    $('#re_process_list_pending').show();
    
    re_process_list_get(page);
    return false;  
  });  
  
  $('.re-xtra-process-prev-disabled').live('click', function() {    
    return false;
  });  
});


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rules_engine-0.1.10 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.9 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.8 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.7 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.6 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.5 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.4 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js
rules_engine-0.1.3 rails_generators/templates/public/javascripts/rules_engine/re_process_index.js