Sha256: 0f7c3e821b2fe88f4a7c57a88056beada9b89d492f54f7dde100d0a1fba842b8

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

$(document).ready(function() {	  

  // RULE LIST  
  $('a.pipeline-rule-list-toggle').live('click', function() {    
    var id = $(this).attr('href').replace('#', '');
    
    var $div = $(this).find('div:first')
    var $list = $('#pipeline_rule_list_' + id)
    if ($div.hasClass('pipeline-rule-list-down')) {
      $list.slideUp(150, function() {
        $div.removeClass('pipeline-rule-list-down');
        $div.addClass('pipeline-rule-list-right');
      });
    } else {
      $list.slideDown(150, function() {
        $div.removeClass('pipeline-rule-list-right');
        $div.addClass('pipeline-rule-list-down');
      });
    }
  });
  
});


Version data entries

1 entries across 1 versions & 1 rubygems

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