RubyApp 0.6.45 → 0.6.46
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,9 +22,9 @@ module RubyApp
|
|
22
22
|
@back_button = RubyApp::Elements::Mobile::Navigation::BackButton.new
|
23
23
|
|
24
24
|
@list = RubyApp::Elements::Mobile::List.new
|
25
|
-
@list.attributes.merge!('
|
25
|
+
@list.attributes.merge!('autofocus' => true,
|
26
|
+
'data-filter' => 'true',
|
26
27
|
'data-filter-placeholder' => 'search')
|
27
|
-
@list.search_value = 'default'
|
28
28
|
@list.items += [ RubyApp::Elements::Mobile::List::ListDivider.new('List') ]
|
29
29
|
@list.items += [ 'Item 01',
|
30
30
|
'Item 02',
|
@@ -2,8 +2,10 @@
|
|
2
2
|
// #{__FILE__}
|
3
3
|
$(document).on('pageinit', function() {
|
4
4
|
$('ul.list:visible').listview('option', 'filterCallback', function() { return false; });
|
5
|
-
$('form.ui-listview-filter input
|
5
|
+
$('form.ui-listview-filter input').each( function() {
|
6
6
|
$(this).val($(this).parents('form.ui-listview-filter').next('ul.list').attr('data-search-value'));
|
7
|
+
if ($(this).parents('form.ui-listview-filter').next('ul.list').attr('autofocus'))
|
8
|
+
$(this).attr('autofocus', 'autofocus');
|
7
9
|
});
|
8
10
|
});
|
9
11
|
$(document).ready( function() {
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 91
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 46
|
10
|
+
version: 0.6.46
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-11-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|