dynaspan 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +6 -1
- data/app/views/dynaspan/_dynaspan_text_select.html.erb +1 -1
- data/lib/dynaspan/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ccd1c1a71062d8b93a5339c4f083e7bedbe3d8c
|
|
4
|
+
data.tar.gz: 643942167cfb812c700812eccfdfaeb2799693e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 144be3e34ffcdea3e7e09f550e6d5c398138653b6bba32dfe578592e73876549a440aeb8c71a2b2ba07f89c43754347894339ba4deda7c2c8c1c3e6a19a1b1e2
|
|
7
|
+
data.tar.gz: e6235297868f385432e9bafbc3528d3356f83619347cc8a20b19cb561dc73eb963c9ba51f43625f6c4fe578cd4d780325afe233711f2e422167d4673c0956b34
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (C) 2014-
|
|
3
|
+
Copyright (C) 2014-2016 by Daniel P. Clark
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -119,6 +119,11 @@ calling parents with selectors. Example usage:
|
|
|
119
119
|
|
|
120
120
|
###What's New
|
|
121
121
|
|
|
122
|
+
|
|
123
|
+
####Version 0.1.4 & 0.1.5
|
|
124
|
+
|
|
125
|
+
Use display name rather than value from option. And enum behavior may be prone to change so added safeguard scenario.
|
|
126
|
+
|
|
122
127
|
####Version 0.1.3
|
|
123
128
|
|
|
124
129
|
Changed **:unique_id** to work based on the object being rendered and some additional random characters in case the same object will be used more than once.
|
|
@@ -188,7 +193,7 @@ string for id.) This allows you to create "new" polymorphic child objects with
|
|
|
188
193
|
|
|
189
194
|
The MIT License (MIT)
|
|
190
195
|
|
|
191
|
-
Copyright (C) 2014-
|
|
196
|
+
Copyright (C) 2014-2016 by Daniel P. Clark
|
|
192
197
|
|
|
193
198
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
194
199
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<% end %>
|
|
21
21
|
</div>
|
|
22
22
|
<% current_value = attr_object.try(attrib) || master_ds_object.try(attrib) %>
|
|
23
|
-
<% display_text = choices.match(/value="#{current_value}".*>(.+)</)[1] %>
|
|
23
|
+
<% display_text = begin choices.match(/value="#{current_value}".*>(.+)</)[1] rescue nil end %>
|
|
24
24
|
<%= content_tag 'span', display_text || current_value, id: "dyna_span_span#{unique_ref_id}", onclick: "$().dynaspan.upShow('#{unique_ref_id}');", class: 'dyna-span dyna-span-text', style: 'display:block;' %>
|
|
25
25
|
<%= content_tag('div', dyna_span_edit_text, class: 'dyna-span-edit-text pull-right', onclick: "$().dynaspan.upShow('#{unique_ref_id}');", style: 'cursor:pointer;') %>
|
|
26
26
|
</div>
|
data/lib/dynaspan/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynaspan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel P. Clark
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: In place text editing with AJAX substituting text to input field.
|
|
14
14
|
email:
|
|
@@ -57,7 +57,7 @@ requirements:
|
|
|
57
57
|
- jQuery
|
|
58
58
|
- Rails
|
|
59
59
|
rubyforge_project:
|
|
60
|
-
rubygems_version: 2.
|
|
60
|
+
rubygems_version: 2.6.4
|
|
61
61
|
signing_key:
|
|
62
62
|
specification_version: 4
|
|
63
63
|
summary: Text to AJAX editing in place.
|