Sha256: 3e50d5459de49eca1fa1fe6c2cde3cf90e1e71324353c22d7e1220845d95d13f

Contents?: true

Size: 650 Bytes

Versions: 72

Compression:

Stored size: 650 Bytes

Contents

:plain
  // #{__FILE__}
  $(document).ready( function() {
    $(document).on('click', 'ul.list > li.item a.item', function(event) {
      event.preventDefault();
      RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::List::ItemClickedEvent', source:$(this).parents('ul.list').attr('id'), item:$(this).parents('li.item').attr('id')});
    });
    $(document).on('click', 'ul.list > li.item a.link', function(event) {
      event.preventDefault();
      RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::List::LinkClickedEvent', source:$(this).parents('ul.list').attr('id'), item:$(this).parents('li.item').attr('id')});
    });
  });
= yield

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
RubyApp-0.6.8 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.7 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.2 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.1 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.95 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.99 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.98 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.97 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.96 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.94 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.93 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.92 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.91 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.90 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.89 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.88 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.87 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.86 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.85 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.5.77 lib/ruby_app/elements/mobile/list.js.haml