active_scaffold 3.6.2 → 3.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d35f441c2847444fd7e591e529085d3613774e19b0dc2b87a6a7e046e39eb95a
4
- data.tar.gz: 5028894d44f4ed52a7e3cf7f4f92d38d86c48221815ccbb2f28396ecbda447ec
3
+ metadata.gz: a5f95a3c7624f3802f29e275341ce3184e9979d91644b48395126b4009fd103e
4
+ data.tar.gz: af61fae0cf8128ec58d90f4e40b6cbdb95400d5491e790a638bafb1dd8bb4909
5
5
  SHA512:
6
- metadata.gz: 0d92dc0e4e6933a0849269191d4b273083e6914606a3198ccd132754f1ef4607434d7ef5cf6e51268aa34c7c926613f75214aa5b1ac961a0784ca5b8a34133c3
7
- data.tar.gz: b87a086b26a98a148a485fe9af2c55e483dbbb82a1ccc4231d7e468a4f5265022bef3899e05ae6e6af1fef63295456f43f2456ba17043f42e42a7a796bcdffde
6
+ metadata.gz: 35795f0bf6eb16148401b4df273c93a02064a3c25d100e58aa17c9de97f48629be77ad4043e30e73e25e208f49318a4ffe877f1d0a2ffee61147fa2cfe8dcc0d
7
+ data.tar.gz: 8be4d03e807f6a621b7812854d062d472d51047399e435303be25ce85522a29486b8d4d48acf6b7d2e72f22def1960c8801e6409bc45651483d15ff2ec9c9a94
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ = 3.6.3
2
+ - Fix search on nested or embedded lists with rails_ujs
3
+ - Fix inplace edit when collection action link opens a view with table and th
4
+
1
5
  = 3.6.2
2
6
  - Fix count query when association's primary key is string
3
7
  - Fix unauthorized_columns and constraint_columns with threadsafe enabled
@@ -1024,7 +1024,7 @@ var ActiveScaffold = {
1024
1024
 
1025
1025
  if (my_parent.is('td')) {
1026
1026
  var column_no = my_parent.prevAll('td').length;
1027
- column_heading = my_parent.closest('.active-scaffold').find('th:eq(' + column_no + ')');
1027
+ column_heading = my_parent.closest('table').find('th:eq(' + column_no + ')');
1028
1028
  } else if (my_parent.is('th')) {
1029
1029
  column_heading = my_parent;
1030
1030
  }
@@ -9,8 +9,16 @@
9
9
  data: {loading: true},
10
10
  method: :get
11
11
  }
12
+
13
+ hidden_params = url_options.except(:controller, :action, :id, :search).to_query.split(Rack::Utils::DEFAULT_SEP)
12
14
  -%>
15
+
13
16
  <%= form_tag url_options, options %>
17
+ <% hidden_params.each do |pair| -%>
18
+ <% key, value = pair.split('=', 2).map { |str| Rack::Utils.unescape(str) } -%>
19
+ <%= hidden_field_tag(key, value) %>
20
+ <% end -%>
21
+
14
22
  <ol class="form">
15
23
  <% visibles, hiddens = visibles_and_hiddens(active_scaffold_config.field_search) %>
16
24
  <% visibles.each do |column| -%>
@@ -10,8 +10,15 @@
10
10
  data: {loading: true},
11
11
  method: :get
12
12
  }
13
+
14
+ hidden_params = url_options.except(:controller, :action, :id, :search).to_query.split(Rack::Utils::DEFAULT_SEP)
13
15
  -%>
16
+
14
17
  <%= form_tag url_options, options do %>
18
+ <% hidden_params.each do |pair| -%>
19
+ <% key, value = pair.split('=', 2).map { |str| Rack::Utils.unescape(str) } -%>
20
+ <%= hidden_field_tag(key, value) %>
21
+ <% end -%>
15
22
  <%= search_field_tag :search, (search_params if search_params.is_a? String), :class => 'text-input', :id => search_input_id, :size => 50, :autocomplete => :off, :placeholder => as_(live_search ? :live_search : :search_terms) %>
16
23
  <%= submit_tag as_(submit_text), :class => "submit", :style => ('display:none;' if live_search) %>
17
24
  <%= link_to as_(:reset), url_for(url_options.merge(:search => '')), :class => 'as_cancel reset', :remote => true, :data => {:refresh => true} unless local_assigns[:skip_reset] %>
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 6
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.2
4
+ version: 3.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -475,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
475
475
  - !ruby/object:Gem::Version
476
476
  version: '0'
477
477
  requirements: []
478
- rubygems_version: 3.0.8
478
+ rubygems_version: 3.0.9
479
479
  signing_key:
480
480
  specification_version: 4
481
481
  summary: Rails 4.x and 5.x versions of ActiveScaffold supporting prototype and jquery