Sha256: a92eb3126b1e631e27e5254d3cc1fcf90cfc4f4380fbfda6b59bfbb9c2092d74

Contents?: true

Size: 654 Bytes

Versions: 43

Compression:

Stored size: 654 Bytes

Contents

:plain
  // #{__FILE__}
  $(document).ready( function() {
    $(document).on('click', 'li.split-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.split-item').attr('id')});
    });
    $(document).on('click', 'li.split-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.split-item').attr('id')});
    });
  });
= yield

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.15 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.14 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.13 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.12 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.11 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.10 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.9 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.5 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.4 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.3 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.2 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.1 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.7.0 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.71 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.70 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.69 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.68 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.67 lib/ruby_app/elements/mobile/list_split_item.js.haml
RubyApp-0.6.66 lib/ruby_app/elements/mobile/list_split_item.js.haml