Sha256: 0726f802535a1a15f12fe12b0de359164c44cbeb584edf911926d290ffe1e6cd

Contents?: true

Size: 852 Bytes

Versions: 1

Compression:

Stored size: 852 Bytes

Contents

block_fetching_thickbox = function() {
  $('#TB_ajaxContent').block({'message' : 'loading'});
}

unblock_fetching_thickbox = function() {
  $('#TB_ajaxContent').unblock();
}

$(document).ready(function() {	  
  
  $('a.pipeline-new').live('click', function() {    
    tb_show("", '#?TB_inline=true&inlineId=tb_temp_frame&height=300&width=800', false);
    block_fetching_thickbox();
    $.get('/re_pipelines/new', null, unblock_fetching_thickbox, 'script');
  	return false;  
  });  


  $("#pipeline_new_cancel").live('click', function() {
    self.parent.tb_remove();
    return false;
  });  

  $('#pipeline_new_insert').live('click', function() {
    block_fetching_thickbox();
    
    $.post($('#pipeline_new_form').attr('action'), $('#pipeline_new_form').serialize(), unblock_fetching_thickbox, 'script');
    
    return false;
  });
});


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rules_engine-0.0.1 rails_generators/templates/public/javascripts/re_pipeline_new.js