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 +4 -4
- data/Rakefile +2 -0
- data/app/assets/javascripts/hydra-editor/field_manager.es6 +9 -4
- data/lib/hydra_editor/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: 9f1b6a2a99f4752530dfad51a2525150a783e2fb
|
4
|
+
data.tar.gz: 49683e80758bd54fea7d815c0689faafcda8f35a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
86
|
-
|
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
|
}
|
data/lib/hydra_editor/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|