scrivito_advanced_editors 1.4.0.dev → 1.4.1.dev
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c1be4f570579fcbdfd7cfb38e48c13dcd7945e
|
4
|
+
data.tar.gz: 2f34ad6e7b74e4d429518047b79af1ce3c33c120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3212a2dbbd8ffe4a337da74225c0879262a6ee40cce483d889ecfcc37feb040f998280cc212ba7eab95eae55b08e8a2e3f308af20cbf2fecdd845df96d69f985
|
7
|
+
data.tar.gz: 6457a6f4bccb5db7e3125ba23087ef74d5c8f7b786a5655c7b02f0cb501f4124c3869a957487f152e7681ff48c0a6e3a6b661084b033622380b819bc61c24e8a
|
@@ -12,9 +12,12 @@
|
|
12
12
|
|
13
13
|
// initial activate listelems
|
14
14
|
$.each($('.tab-list'), function(index, elem) {
|
15
|
-
id = '#'+$(elem).attr('id')
|
16
|
-
|
17
|
-
|
15
|
+
id = '#'+$(elem).attr('id');
|
16
|
+
if(id !== undefined) {
|
17
|
+
b = $('[data-tab-to-toggle="'+id+'"]');
|
18
|
+
|
19
|
+
activate(b);
|
20
|
+
}
|
18
21
|
});
|
19
22
|
});
|
20
23
|
|
@@ -24,13 +27,16 @@
|
|
24
27
|
var selector = $(list).data('tab-to-toggle');
|
25
28
|
var tab = $(selector);
|
26
29
|
var panel, allowedValues;
|
27
|
-
|
28
30
|
$(tab).find('.active').removeClass('active');
|
29
31
|
|
30
32
|
$.each(tab.find('li'), function(index, elem) {
|
31
33
|
panel = $(elem).data('panel-target');
|
32
34
|
$(panel).removeClass('active');
|
33
35
|
allowedValues = $(elem).data('allowed-values');
|
36
|
+
// array in attribute as string to be an array anymore.
|
37
|
+
// seems to happen since rails update ... data as array is not an array in dom, " and ' are switch in dom => not correct json to parse
|
38
|
+
// [' \[\]] => remove all space, ', [ and ] with
|
39
|
+
allowedValues = typeof(allowedValues) === 'string' ? allowedValues.replace(/[' \[\]]/g, "").split(",") : allowedValues;
|
34
40
|
|
35
41
|
if(allowedValues == undefined || $.inArray(value, allowedValues) > -1) {
|
36
42
|
if($(button).hasClass('scrivito_enum_active')) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_advanced_editors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1.dev
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: 1.3.1
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.5.1
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Advanced Editors and details view extensions for scrivito
|