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.39 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.38 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.36 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.35 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.34 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.33 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.32 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.31 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.29 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.28 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.27 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.26 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.25 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.24 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.22 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.21 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.16 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.12 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.11 lib/ruby_app/elements/mobile/list.js.haml
RubyApp-0.6.10 lib/ruby_app/elements/mobile/list.js.haml