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: a4d6e71174afbc3b94c359bf62500b312023fa34
4
- data.tar.gz: 2876d4cc55ac3e6bb2f594f42e553abc246ad5c8
3
+ metadata.gz: 5ec3bd472c8033bad800a015bf38c31b7d59e7eb
4
+ data.tar.gz: 61d4e66d741f9c721f59f0e780d32bfd5cb9b64f
5
5
  SHA512:
6
- metadata.gz: c0cd8b70a5d1b4c50797b717174a740d4402f6f7fa3d41060b74510db267b9e5c74dcb09008c43a9188a4fb11b29018fdd2f3dd7671169656f839980cac51882
7
- data.tar.gz: 1e7dfdf462bf10e586e01a14182dc00b3833ead3b68528a19548999c2aaac6d4d93ddf23d5d9dfd90d280eae801f667e02261abb3c049c238db6cc0633da6402
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(500);
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(500);
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, default: [
3
- AccordionPanelWidget.new(title: 'First Panel'),
4
- AccordionPanelWidget.new(title: 'Second Panel')
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]
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAccordionWidget
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
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.10
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-07-09 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler