Sha256: 1d91654fcedd69bc88747fdac32a9d9361809a2cc96065d0674fec5f9fe69947

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

- self.rendered?(__FILE__) do
  :plain
    // #{__FILE__}
    $(document).ready(function() {
      $('div.markdown a').live('click', function(event) {
        event.preventDefault();
        RubyApp.sendEvent({_class:'RubyApp::Elements::Markdown::NavigatedEvent', source_id:$(this).parents('div.markdown').attr('id'), name:$(this).attr('href')});
      });
    });
= yield

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
RubyApp-0.0.8 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.7 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.6 lib/ruby_app/elements/markdown.js.haml