Sha256: be0c5eb7cfe2d1606b8e872e390704933a5994830b9c3290f4e3cd54ea5f238a

Contents?: true

Size: 371 Bytes

Versions: 25

Compression:

Stored size: 371 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::ClickedEvent', source_id:$(this).parents('div.markdown').attr('id'), name:$(this).attr('href')});
      });
    });
= yield

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
RubyApp-0.0.43 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.42 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.41 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.30 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.29 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.28 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.27 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.26 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.25 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.24 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.23 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.22 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.21 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.20 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.19 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.18 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.17 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.16 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.15 lib/ruby_app/elements/markdown.js.haml
RubyApp-0.0.14 lib/ruby_app/elements/markdown.js.haml