fullstack-admin 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.16
1
+ 0.2.17
@@ -13,8 +13,9 @@ $(document).ready ->
13
13
  autoupdate_labels = (associated_resources) ->
14
14
  associated_resources.each ->
15
15
  associated_resource = $(@)
16
- label_input_id = associated_resource.data("label-input")
17
- label_input = $("#" + label_input_id)
16
+
17
+ label_input = $(associated_resource.find("input[type='text']")[0])
18
+ console.log(label_input)
18
19
  label_input.change ->
19
20
  associated_resource.find(".associated-resource-label").text(label_input.val())
20
21
 
@@ -1,6 +1,7 @@
1
1
  <% title_column_or_id = title_column(f.object.class) || "id" %>
2
2
  <% resource_title = f.object.send(title_column_or_id) %>
3
3
 
4
+
4
5
  <tr <%= 'data-new-record' if f.object.new_record? %> class="associated-resource" data-label-input="<%= resource_name %>_<%= association %>_attributes_<%= index %>_<%= title_column_or_id %>">
5
6
 
6
7
  <% if positionable?(f.object) %>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-admin"
8
- s.version = "0.2.16"
8
+ s.version = "0.2.17"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1280,7 +1280,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1280
1280
  version: '0'
1281
1281
  segments:
1282
1282
  - 0
1283
- hash: -3068849152371533729
1283
+ hash: -3926971815620400559
1284
1284
  required_rubygems_version: !ruby/object:Gem::Requirement
1285
1285
  none: false
1286
1286
  requirements: