Sha256: eda6a154b9817768a98c348efd0ac87af69c4c7e7b735643525af3d428ba06c5
Contents?: true
Size: 931 Bytes
Versions: 2
Compression:
Stored size: 931 Bytes
Contents
:plain // #{__FILE__} $(document).on('pageinit', function() { $('ul.list').listview('option', 'filterCallback', function() {}); $('form.ui-listview-filter input').each( function() { $(this).val($(this).parents('form.ui-listview-filter').next('ul.list').attr('data-search-value')); }); }); $(document).ready( function() { $(document).on('change', 'form.ui-listview-filter input', function(event) { event.preventDefault(); var list = $(this).parents('form.ui-listview-filter').next('ul.list'); var value = $(this).val(); list.attr('data-search-value', value); RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::List::SearchedEvent', source:list.attr('id'), value:value}); }); }); = RubyApp::Elements::Mobile::List::ListItem.render(:js) = RubyApp::Elements::Mobile::List::ListDivider.render(:js) = RubyApp::Elements::Mobile::List::ListSplitItem.render(:js) = yield
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.6.41 | lib/ruby_app/elements/mobile/list.js.haml |
RubyApp-0.6.40 | lib/ruby_app/elements/mobile/list.js.haml |