Sha256: a761d6ef336138aeb5ea33346d438d1dbe56f7bcdc80ba4805d2264025bcb710

Contents?: true

Size: 544 Bytes

Versions: 65

Compression:

Stored size: 544 Bytes

Contents

function toggle_feature_dir(feature_dir) {
  $(feature_dir).parent('div.feature_dir').nextUntil('div.feature_dir').toggle(250);
};

function toggle_step_file(step_file) {
  $(step_file).closest('li').next('.step_contents').toggle(250);
  event.stopPropagation();
};

$(document).ready(function() {
  $('li.step').each(function() {
    var messages = $(this).nextUntil('li.step').filter('.message');
    if (messages.length > 0) {
      $(this).css('cursor', 'pointer').click(function() {
        messages.toggle(250);
      });
    }
  });
});

Version data entries

65 entries across 65 versions & 2 rubygems

Version Path
closer-0.2.1 lib/closer/formatter/closer.js
closer-0.2.0 lib/closer/formatter/closer.js
daddy-0.3.36 lib/daddy/formatter/daddy.js
closer-0.1.6 lib/closer/formatter/closer.js
daddy-0.3.35 lib/daddy/formatter/daddy.js
daddy-0.3.34 lib/daddy/formatter/daddy.js
closer-0.1.5 lib/closer/formatter/closer.js
closer-0.1.4 lib/closer/formatter/closer.js
daddy-0.3.33 lib/daddy/formatter/daddy.js
closer-0.1.3 lib/closer/formatter/closer.js
daddy-0.3.32 lib/daddy/formatter/daddy.js
daddy-0.3.31 lib/daddy/formatter/daddy.js
daddy-0.3.30 lib/daddy/formatter/daddy.js
daddy-0.3.29 lib/daddy/formatter/daddy.js
daddy-0.3.28 lib/daddy/formatter/daddy.js
daddy-0.3.27 lib/daddy/formatter/daddy.js
daddy-0.3.26 lib/daddy/formatter/daddy.js
daddy-0.3.25 lib/daddy/formatter/daddy.js
closer-0.1.2 lib/closer/formatter/closer.js
daddy-0.3.24 lib/daddy/formatter/daddy.js