Sha256: 6653bb2a7b24fa95bafb6708ce8d2850b51d095ac2eff31a4d29af5719d48997

Contents?: true

Size: 692 Bytes

Versions: 4

Compression:

Stored size: 692 Bytes

Contents

$(document).ready(function() {	  
  
  $('a#re_workflow_new').live('click', function() {    
    $.re_block();
    $.get('/re_workflows/new', null, function() {
          $.re_unblock();
          $.fancybox({ href: '#re_content'});
        }, 'script');
    	return false;  
    });  


  $("#re_workflow_new_cancel").live('click', function() {
    $.fancybox.close();
    return false;
  });  

  $('#re_workflow_new_insert').live('click', function() {
    $.re_block();    
    $.post($('#re_workflow_new_form').attr('action'), $('#re_workflow_new_form').serialize(), function() {
        $.fancybox.resize();
        $.re_unblock();
      }, 'script');
    
    return false;
  });
});


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.1.6 rails_generators/templates/public/javascripts/rules_engine/re_workflow_new.js
rules_engine-0.1.5 rails_generators/templates/public/javascripts/rules_engine/re_workflow_new.js
rules_engine-0.1.4 rails_generators/templates/public/javascripts/rules_engine/re_workflow_new.js
rules_engine-0.1.3 rails_generators/templates/public/javascripts/rules_engine/re_workflow_new.js