hobo_jquery_ui 2.0.0.pre5 → 2.0.0.pre6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/taglibs/datepicker.dryml +1 -1
- data/taglibs/name_one.dryml +5 -1
- data/taglibs/overrides.dryml +16 -0
- data/vendor/assets/javascripts/combobox.js +2 -0
- metadata +7 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.pre6
|
data/taglibs/datepicker.dryml
CHANGED
@@ -11,7 +11,7 @@ It's probably useful to set global options such as dateFormat in application.dry
|
|
11
11
|
|
12
12
|
<input:birthdate yearRange="1900:#{Date.today.year}" />
|
13
13
|
|
14
|
-
New in version
|
14
|
+
New in version 2.0:
|
15
15
|
|
16
16
|
If you do not specify dateFormat, we will attempt to convert I18n.t(:"date.formats.default") from strftime format into the format that the JQuery-UI datepicker likes.
|
17
17
|
|
data/taglibs/name_one.dryml
CHANGED
@@ -60,7 +60,11 @@ All other attributes are passed through to the `<autocomplete>` that provides th
|
|
60
60
|
<%
|
61
61
|
complete_target ||= this_field_reflection.klass
|
62
62
|
completer ||= (complete_target.is_a?(Class) ? complete_target : complete_target.class).name_attribute
|
63
|
-
|
63
|
+
begin
|
64
|
+
source = polymorphic_url(complete_target, :action => "complete_#{completer}", :routing_type => :path)
|
65
|
+
rescue NoMethodError => e
|
66
|
+
source = polymorphic_url(complete_target.class, :action => "complete_#{completer}", :routing_type => :path, :id => complete_target._?.id)
|
67
|
+
end
|
64
68
|
value = name(:no_wrapper => true, :if_present => true)
|
65
69
|
-%>
|
66
70
|
<autocomplete source="&source" minLength="&min_chars || 1" merge/>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- implements `<search-results-container>` for hobo-rapid with `<dialog-box>` -->
|
2
|
+
<def tag="search-results-container" attrs="title">
|
3
|
+
<dialog-box position="center" width="&600" height="&800" id="search-results-box" title="&title" param="default" autoOpen="&true">
|
4
|
+
<search-results/>
|
5
|
+
</dialog-box>
|
6
|
+
</def>
|
7
|
+
|
8
|
+
<!-- use jQuery-UI for date inputs. To switch back to vanilla Rails (`<select-date>`) add to your application.dryml:
|
9
|
+
|
10
|
+
<def tag="input" for="Date">
|
11
|
+
<date-select merge/>
|
12
|
+
</def>
|
13
|
+
-->
|
14
|
+
<def tag="input" for="Date">
|
15
|
+
<datepicker dateFormat="yy-mm-dd" merge />
|
16
|
+
</def>
|
@@ -29,6 +29,7 @@
|
|
29
29
|
found = false;
|
30
30
|
var input = this.input = $( "<input>" )
|
31
31
|
.attr('title', '' + select.attr("title") + '')
|
32
|
+
.attr('type', 'text')
|
32
33
|
.insertAfter( select )
|
33
34
|
.val( value )
|
34
35
|
.autocomplete({
|
@@ -144,6 +145,7 @@
|
|
144
145
|
text: false
|
145
146
|
})
|
146
147
|
.removeClass( "ui-corner-all" )
|
148
|
+
.css("margin-right", "0")
|
147
149
|
.click(function(event, ui) {
|
148
150
|
|
149
151
|
select.find("option:selected").removeAttr("selected");
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_jquery_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.pre6
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-ui-themes
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.0.
|
37
|
+
version: 2.0.0.pre6
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.0.
|
45
|
+
version: 2.0.0.pre6
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: hobo_jquery
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.0.0.
|
53
|
+
version: 2.0.0.pre6
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.0.
|
61
|
+
version: 2.0.0.pre6
|
62
62
|
description: JQuery UI support for Hobo
|
63
63
|
email: bryan@larsen.st
|
64
64
|
executables: []
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- taglibs/dialog_box.dryml
|
82
82
|
- taglibs/hobo_jquery_ui.dryml
|
83
83
|
- taglibs/name_one.dryml
|
84
|
+
- taglibs/overrides.dryml
|
84
85
|
- taglibs/tabs.dryml
|
85
86
|
- taglibs/toggle.dryml
|
86
87
|
- vendor/assets/javascripts/combobox.js
|