hydra-editor 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 559d288907d4240127a8f04a291543b2c3066865
4
- data.tar.gz: 19e19be48f8f63e150dbafeefee1d57610ff4818
3
+ metadata.gz: 9f1b6a2a99f4752530dfad51a2525150a783e2fb
4
+ data.tar.gz: 49683e80758bd54fea7d815c0689faafcda8f35a
5
5
  SHA512:
6
- metadata.gz: baae3f090c771580a55ee7ae6cb5f389712b178995b86020e068d5eba8a2142f6ab1fb4f815efd0584eeb2ed13065b7ba609e387cb061de387fbdced6e5f42fa
7
- data.tar.gz: f3d44ec6fb4912ffbc6b32d6e1c905ef366ea5c21ec7fccdcb72fc02b5be4d0bac91bdbd312e4c56ab9c4d64b989aa16e8c3ce0ec6879d7253bbb6cab0026650
6
+ metadata.gz: 148ccc71482d2134fe79b06ddb5df0b101d3f97c6c6885912b6d39f4cd310a3e39e2a758b8bfc5d651c028a2b0319af69ac640f3ac2da2572ccc56eaa888c7a3
7
+ data.tar.gz: 9d5ada72411266500fac5b753a8f9759c93b20b6acbc56065d5fb488192019ac8abf2eb4258e1ea62502f181990e065cab6b0a026e0d5e0e5a4a9bad9fa52acb
data/Rakefile CHANGED
@@ -33,6 +33,8 @@ require 'engine_cart/rake_task'
33
33
  require 'jasmine'
34
34
  load 'jasmine/tasks/jasmine.rake'
35
35
 
36
+ import "#{Gem.loaded_specs['jasmine'].full_gem_path}/lib/jasmine/tasks/jasmine.rake"
37
+
36
38
  # Set up the test application prior to running jasmine tasks.
37
39
  task 'jasmine:require' => :setup_test_server
38
40
  task :setup_test_server do
@@ -82,10 +82,8 @@ export class FieldManager {
82
82
 
83
83
  createNewField($activeField) {
84
84
  let $newField = $activeField.clone();
85
- let $newChildren = $newField.children('input');
86
- $newChildren.val('').removeProp('required');
87
- $newChildren.first().focus();
88
- this.element.trigger("managed_field:add", $newChildren.first());
85
+ let $newChildren = this.createNewChildren($newField);
86
+ this.element.trigger("managed_field:add", $newChildren);
89
87
  return $newField;
90
88
  }
91
89
 
@@ -146,4 +144,11 @@ export class FieldManager {
146
144
  $removeHtml.find('.controls-field-name-text').html(options.label);
147
145
  return $removeHtml;
148
146
  }
147
+
148
+ createNewChildren(clone) {
149
+ let $newChildren = $(clone).children('.multi_value');
150
+ $newChildren.val('').removeProp('required');
151
+ $newChildren.first().focus();
152
+ return $newChildren.first();
153
+ }
149
154
  }
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '3.1.1'.freeze
2
+ VERSION = '3.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-13 00:00:00.000000000 Z
12
+ date: 2016-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: '0'
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.5.1
302
+ rubygems_version: 2.6.4
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: A basic metadata editor for hydra-head