scrivito_accordion_widget 1.0.10 → 1.0.11
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: 5ec3bd472c8033bad800a015bf38c31b7d59e7eb
|
4
|
+
data.tar.gz: 61d4e66d741f9c721f59f0e780d32bfd5cb9b64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fc45be86046fcf992c8f4daffeef5627d22e567403463c28c6716011439268bb519d202c96097413fabf20b67e76ed90eb0e6df7189182d65d4584a7a605cce
|
7
|
+
data.tar.gz: 5b4119a5bb2bc668ce4bd3657161cb0822e368b21219e668b62ada00138cfe57d522405993a0a4118c942026a12f3c73431a372caf055bdd9a255332f7e2f188
|
@@ -9,10 +9,10 @@
|
|
9
9
|
var accordion_title = $(accordion_title);
|
10
10
|
accordion_title.click(function() {
|
11
11
|
accordion_group.find('.scrivito-accordion-title').removeClass('scrivito-accordion-active');
|
12
|
-
accordion_group.find('.scrivito-accordion-content').slideUp(
|
12
|
+
accordion_group.find('.scrivito-accordion-content').stop(true,false).slideUp(350);
|
13
13
|
|
14
14
|
accordion_title.addClass('scrivito-accordion-active');
|
15
|
-
accordion_title.next().slideDown(
|
15
|
+
accordion_title.next().stop(true,false).slideDown(350);
|
16
16
|
});
|
17
17
|
});
|
18
18
|
});
|
@@ -1,8 +1,12 @@
|
|
1
1
|
class AccordionWidget < Widget
|
2
|
-
attribute :panels, :widgetlist
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
attribute :panels, :widgetlist
|
3
|
+
|
4
|
+
default_for :panels do |attributes|
|
5
|
+
[
|
6
|
+
AccordionPanelWidget.new(title: 'First Panel'),
|
7
|
+
AccordionPanelWidget.new(title: 'Second Panel')
|
8
|
+
]
|
9
|
+
end
|
6
10
|
|
7
11
|
def valid_widget_classes_for(field_name)
|
8
12
|
[AccordionPanelWidget]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_accordion_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|