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
daddy-0.3.8 lib/daddy/formatter/daddy.js
daddy-0.3.7 lib/daddy/formatter/daddy.js
daddy-0.3.6 lib/daddy/formatter/daddy.js
daddy-0.3.4 lib/daddy/formatter/daddy.js
daddy-0.3.3 lib/daddy/formatter/daddy.js
daddy-0.3.2 lib/daddy/formatter/daddy.js
daddy-0.3.1 lib/daddy/formatter/daddy.js
daddy-0.3.0 lib/daddy/formatter/daddy.js
daddy-0.2.23 lib/daddy/formatter/daddy.js
daddy-0.2.22 lib/daddy/formatter/daddy.js
daddy-0.2.21 lib/daddy/formatter/daddy.js
daddy-0.2.20 lib/daddy/formatter/daddy.js
daddy-0.2.19 lib/daddy/formatter/daddy.js
daddy-0.2.18 lib/daddy/formatter/daddy.js
daddy-0.2.17 lib/daddy/formatter/daddy.js
daddy-0.2.16 lib/daddy/formatter/daddy.js
daddy-0.2.15 lib/daddy/formatter/daddy.js
daddy-0.2.14 lib/daddy/formatter/daddy.js
daddy-0.2.13 lib/daddy/formatter/daddy.js
daddy-0.2.12 lib/daddy/formatter/daddy.js