mtl 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/mtl.js +1 -1
  3. data/app/assets/stylesheets/mtl/all.scss +4 -0
  4. data/lib/mtl/version.rb +2 -2
  5. data/package.json +1 -1
  6. data/vendor/assets/javascripts/materialize/cards.js +13 -3
  7. data/vendor/assets/javascripts/materialize/carousel.js +78 -28
  8. data/vendor/assets/javascripts/materialize/chips.js +27 -27
  9. data/vendor/assets/javascripts/materialize/collapsible.js +34 -11
  10. data/vendor/assets/javascripts/materialize/date_picker/picker.date.js +137 -136
  11. data/vendor/assets/javascripts/materialize/date_picker/picker.js +0 -1
  12. data/vendor/assets/javascripts/materialize/date_picker/picker.time.js +686 -0
  13. data/vendor/assets/javascripts/materialize/dropdown.js +19 -12
  14. data/vendor/assets/javascripts/materialize/forms.js +98 -72
  15. data/vendor/assets/javascripts/materialize/global.js +14 -1
  16. data/vendor/assets/javascripts/materialize/jquery.easing.1.4.js +166 -0
  17. data/vendor/assets/javascripts/materialize/materialbox.js +48 -44
  18. data/vendor/assets/javascripts/materialize/modal.js +2 -1
  19. data/vendor/assets/javascripts/materialize/scrollspy.js +10 -5
  20. data/vendor/assets/javascripts/materialize/sideNav.js +44 -14
  21. data/vendor/assets/javascripts/materialize/slider.js +3 -3
  22. data/vendor/assets/javascripts/materialize/tabs.js +17 -7
  23. data/vendor/assets/javascripts/materialize/tapTarget.js +187 -0
  24. data/vendor/assets/javascripts/materialize/transitions.js +2 -2
  25. data/vendor/assets/javascripts/materialize/waves.js +1 -1
  26. data/vendor/assets/javascripts/pdfobject.js +1 -1
  27. data/vendor/assets/stylesheets/materialize/_buttons.scss +11 -12
  28. data/vendor/assets/stylesheets/materialize/_cards.scss +3 -0
  29. data/vendor/assets/stylesheets/materialize/_carousel.scss +7 -1
  30. data/vendor/assets/stylesheets/materialize/_chips.scss +6 -1
  31. data/vendor/assets/stylesheets/materialize/_collapsible.scss +1 -0
  32. data/vendor/assets/stylesheets/materialize/_color.scss +1 -1
  33. data/vendor/assets/stylesheets/materialize/_dropdown.scss +3 -0
  34. data/vendor/assets/stylesheets/materialize/_global.scss +18 -23
  35. data/vendor/assets/stylesheets/materialize/_grid.scss +44 -35
  36. data/vendor/assets/stylesheets/materialize/_modal.scss +2 -2
  37. data/vendor/assets/stylesheets/materialize/_preloader.scss +3 -3
  38. data/vendor/assets/stylesheets/materialize/_pulse.scss +34 -0
  39. data/vendor/assets/stylesheets/materialize/_sideNav.scss +17 -11
  40. data/vendor/assets/stylesheets/materialize/_tapTarget.scss +103 -0
  41. data/vendor/assets/stylesheets/materialize/_variables.scss +15 -6
  42. data/vendor/assets/stylesheets/materialize/date_picker/_default.date.scss +48 -27
  43. data/vendor/assets/stylesheets/materialize/date_picker/_default.scss +10 -0
  44. data/vendor/assets/stylesheets/materialize/date_picker/_default.time.scss +155 -13
  45. data/vendor/assets/stylesheets/materialize/forms/_input-fields.scss +18 -12
  46. data/vendor/assets/stylesheets/materialize/forms/_range.scss +3 -2
  47. data/vendor/assets/stylesheets/materialize/forms/_switches.scss +30 -17
  48. metadata +7 -7
  49. data/vendor/assets/javascripts/materialize/init.js +0 -211
  50. data/vendor/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
  51. data/vendor/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
  52. data/vendor/assets/javascripts/materialize/prism.js +0 -8
  53. data/vendor/assets/stylesheets/materialize/_prefixer.scss +0 -384
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57e2dac26b6a58590625382a0750e9646596b36d
4
- data.tar.gz: f3f2731e287f7e1e5c367c46a0938646b3a9cced
3
+ metadata.gz: 5f8400a76f9ad5c951ceec5a18bb58b32c3c4541
4
+ data.tar.gz: 686224b970bfc5939dd7f25fa8af6386fb700338
5
5
  SHA512:
6
- metadata.gz: f9f982819c9477dd8f28331e61dc3864aaf7702bb56faba6f1d739fb302b03d3e2dd7fbf80e43b311d4960cf41e6e9548398d9cf3a8e932f8af655bbb4fe44d1
7
- data.tar.gz: 641de61f49159ce2bf49df996b57b85892cf8d2de627b363b24314730b7e9960f28256bc9d9fbff0f7d895b29bada4605e067895295650d6311b728decbed7c2
6
+ metadata.gz: f793b5bc1b8eb97cf7453e3cfc97e283c97539616fca461414db12cdd71a3d8a50e02b2185568dc9bcf7d3d5153514ba8e13fd49c01603ff7619c0af0f6ad181
7
+ data.tar.gz: 11b52a45bd8a36867dd5c2a23ae0834a26844795021de6b18a7243c8a5daf446da92d9d9a6416fdd1a0b494db9755fd8ca32afefa160f420ad866b3cc0296542
@@ -1,4 +1,4 @@
1
- //=require "materialize/jquery.easing.1.3"
1
+ //=require "materialize/jquery.easing.1.4"
2
2
  //=require "materialize/velocity.min"
3
3
  //=require "materialize/hammer.min"
4
4
  //=require "materialize/jquery.hammer"
@@ -69,3 +69,7 @@
69
69
  html { height: 100%; } // yes, necessary
70
70
  @import './layouts/default';
71
71
  @import './layouts/single';
72
+
73
+ // new stuff (0.98.0 -> 0.99.0)
74
+ @import 'materialize/pulse';
75
+ @import 'materialize/tapTarget';
data/lib/mtl/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Mtl
2
- VERSION = '1.1.7'.freeze
3
- MATERIALIZE_VERSION = '0.98.0'.freeze
2
+ VERSION = '1.1.8'.freeze
3
+ MATERIALIZE_VERSION = '0.99.0'.freeze
4
4
  ICONS_VERSION = '2.2.3'.freeze
5
5
  LODASH_VERSION = '4.14.1'.freeze
6
6
  PDFOBJECT_VERSION = '2.0.201604172'.freeze
data/package.json CHANGED
@@ -6,6 +6,6 @@
6
6
  "pdfobject": "2.0",
7
7
  "lodash": "4.14.1",
8
8
  "material-design-icons": "2.2.3",
9
- "materialize-css": "https://github.com/Dogfalo/materialize.git#v0.98.0"
9
+ "materialize-css": "https://github.com/Dogfalo/materialize.git#v0.99.0"
10
10
  }
11
11
  }
@@ -3,6 +3,13 @@
3
3
 
4
4
  $(document).on('click.card', '.card', function (e) {
5
5
  if ($(this).find('> .card-reveal').length) {
6
+ var $card = $(e.target).closest('.card');
7
+ if ($card.data('initialOverflow') === undefined) {
8
+ $card.data(
9
+ 'initialOverflow',
10
+ $card.css('overflow') === undefined ? '' : $card.css('overflow')
11
+ );
12
+ }
6
13
  if ($(e.target).is($('.card-reveal .card-title')) || $(e.target).is($('.card-reveal .card-title i'))) {
7
14
  // Make Reveal animate down and display none
8
15
  $(this).find('.card-reveal').velocity(
@@ -10,17 +17,20 @@
10
17
  duration: 225,
11
18
  queue: false,
12
19
  easing: 'easeInOutQuad',
13
- complete: function() { $(this).css({ display: 'none'}); }
20
+ complete: function() {
21
+ $(this).css({ display: 'none'});
22
+ $card.css('overflow', $card.data('initialOverflow'));
23
+ }
14
24
  }
15
25
  );
16
26
  }
17
27
  else if ($(e.target).is($('.card .activator')) ||
18
28
  $(e.target).is($('.card .activator i')) ) {
19
- $(e.target).closest('.card').css('overflow', 'hidden');
29
+ $card.css('overflow', 'hidden');
20
30
  $(this).find('.card-reveal').css({ display: 'block'}).velocity("stop", false).velocity({translateY: '-100%'}, {duration: 300, queue: false, easing: 'easeInOutQuad'});
21
31
  }
22
32
  }
23
33
  });
24
34
 
25
35
  });
26
- }( jQuery ));
36
+ }( jQuery ));
@@ -14,39 +14,44 @@
14
14
  onCycleTo: null // Callback for when a new slide is cycled to.
15
15
  };
16
16
  options = $.extend(defaults, options);
17
+ var namespace = Materialize.objectSelectorString($(this));
17
18
 
18
- return this.each(function() {
19
+ return this.each(function(i) {
19
20
 
21
+ var uniqueNamespace = namespace+i;
20
22
  var images, item_width, item_height, offset, center, pressed, dim, count,
21
- reference, referenceY, amplitude, target, velocity,
23
+ reference, referenceY, amplitude, target, velocity, scrolling,
22
24
  xform, frame, timestamp, ticker, dragged, vertical_dragged;
23
25
  var $indicators = $('<ul class="indicators"></ul>');
26
+ var scrollingTimeout = null;
27
+ var oneTimeCallback = null;
24
28
 
25
29
 
26
30
  // Initialize
27
31
  var view = $(this);
28
32
  var showIndicators = view.attr('data-indicators') || options.indicators;
29
33
 
30
- // Don't double initialize.
31
- if (view.hasClass('initialized')) {
32
- // Redraw carousel.
33
- $(this).trigger('carouselNext', [0.000001]);
34
- return true;
35
- }
36
-
37
34
 
38
35
  // Options
39
- if (options.fullWidth) {
40
- options.dist = 0;
36
+ var setCarouselHeight = function() {
41
37
  var firstImage = view.find('.carousel-item img').first();
42
38
  if (firstImage.length) {
43
- imageHeight = firstImage.on('load', function(){
44
- view.css('height', $(this).height());
45
- });
39
+ if (firstImage.prop('complete')) {
40
+ view.css('height', firstImage.height());
41
+ } else {
42
+ firstImage.on('load', function(){
43
+ view.css('height', $(this).height());
44
+ });
45
+ }
46
46
  } else {
47
- imageHeight = view.find('.carousel-item').first().height();
47
+ var imageHeight = view.find('.carousel-item').first().height();
48
48
  view.css('height', imageHeight);
49
49
  }
50
+ };
51
+
52
+ if (options.fullWidth) {
53
+ options.dist = 0;
54
+ setCarouselHeight();
50
55
 
51
56
  // Offset fixed items when indicators.
52
57
  if (showIndicators) {
@@ -55,6 +60,17 @@
55
60
  }
56
61
 
57
62
 
63
+ // Don't double initialize.
64
+ if (view.hasClass('initialized')) {
65
+ // Recalculate variables
66
+ $(window).trigger('resize');
67
+
68
+ // Redraw carousel.
69
+ $(this).trigger('carouselNext', [0.000001]);
70
+ return true;
71
+ }
72
+
73
+
58
74
  view.addClass('initialized');
59
75
  pressed = false;
60
76
  offset = target = 0;
@@ -128,6 +144,20 @@
128
144
  }
129
145
 
130
146
  function scroll(x) {
147
+ // Track scrolling state
148
+ scrolling = true;
149
+ if (!view.hasClass('scrolling')) {
150
+ view.addClass('scrolling');
151
+ }
152
+ if (scrollingTimeout != null) {
153
+ window.clearTimeout(scrollingTimeout);
154
+ }
155
+ scrollingTimeout = window.setTimeout(function() {
156
+ scrolling = false;
157
+ view.removeClass('scrolling');
158
+ }, options.duration);
159
+
160
+ // Start actual scroll
131
161
  var i, half, delta, dir, tween, el, alignment, xTranslation;
132
162
  var lastCenter = center;
133
163
 
@@ -238,6 +268,12 @@
238
268
  var $curr_item = view.find('.carousel-item').eq(wrap(center));
239
269
  options.onCycleTo.call(this, $curr_item, dragged);
240
270
  }
271
+
272
+ // One time callback
273
+ if (typeof(oneTimeCallback) === "function") {
274
+ oneTimeCallback.call(this, $curr_item, dragged);
275
+ oneTimeCallback = null;
276
+ }
241
277
  }
242
278
 
243
279
  function track() {
@@ -277,7 +313,7 @@
277
313
 
278
314
  } else if (!options.fullWidth) {
279
315
  var clickedIndex = $(e.target).closest('.carousel-item').index();
280
- var diff = (center % count) - clickedIndex;
316
+ var diff = wrap(center) - clickedIndex;
281
317
 
282
318
  // Disable clicks if carousel was shifted by click
283
319
  if (diff !== 0) {
@@ -311,6 +347,9 @@
311
347
  }
312
348
 
313
349
  function tap(e) {
350
+ if (e.type === 'mousedown') {
351
+ e.preventDefault();
352
+ }
314
353
  pressed = true;
315
354
  dragged = false;
316
355
  vertical_dragged = false;
@@ -322,7 +361,6 @@
322
361
  timestamp = Date.now();
323
362
  clearInterval(ticker);
324
363
  ticker = setInterval(track, 100);
325
-
326
364
  }
327
365
 
328
366
  function drag(e) {
@@ -405,7 +443,7 @@
405
443
  });
406
444
 
407
445
 
408
- $(window).on('resize.carousel', function() {
446
+ $(window).off('resize.carousel-'+uniqueNamespace).on('resize.carousel-'+uniqueNamespace, function() {
409
447
  if (options.fullWidth) {
410
448
  item_width = view.find('.carousel-item').first().innerWidth();
411
449
  item_height = view.find('.carousel-item').first().innerHeight();
@@ -420,10 +458,14 @@
420
458
  setupEvents();
421
459
  scroll(offset);
422
460
 
423
- $(this).on('carouselNext', function(e, n) {
461
+ $(this).on('carouselNext', function(e, n, callback) {
424
462
  if (n === undefined) {
425
463
  n = 1;
426
464
  }
465
+ if (typeof(callback) === "function") {
466
+ oneTimeCallback = callback;
467
+ }
468
+
427
469
  target = (dim * Math.round(offset / dim)) + (dim * n);
428
470
  if (offset !== target) {
429
471
  amplitude = target - offset;
@@ -432,10 +474,14 @@
432
474
  }
433
475
  });
434
476
 
435
- $(this).on('carouselPrev', function(e, n) {
477
+ $(this).on('carouselPrev', function(e, n, callback) {
436
478
  if (n === undefined) {
437
479
  n = 1;
438
480
  }
481
+ if (typeof(callback) === "function") {
482
+ oneTimeCallback = callback;
483
+ }
484
+
439
485
  target = (dim * Math.round(offset / dim)) - (dim * n);
440
486
  if (offset !== target) {
441
487
  amplitude = target - offset;
@@ -444,10 +490,14 @@
444
490
  }
445
491
  });
446
492
 
447
- $(this).on('carouselSet', function(e, n) {
493
+ $(this).on('carouselSet', function(e, n, callback) {
448
494
  if (n === undefined) {
449
495
  n = 0;
450
496
  }
497
+ if (typeof(callback) === "function") {
498
+ oneTimeCallback = callback;
499
+ }
500
+
451
501
  cycleTo(n);
452
502
  });
453
503
 
@@ -456,14 +506,14 @@
456
506
 
457
507
 
458
508
  },
459
- next : function(n) {
460
- $(this).trigger('carouselNext', [n]);
509
+ next : function(n, callback) {
510
+ $(this).trigger('carouselNext', [n, callback]);
461
511
  },
462
- prev : function(n) {
463
- $(this).trigger('carouselPrev', [n]);
512
+ prev : function(n, callback) {
513
+ $(this).trigger('carouselPrev', [n, callback]);
464
514
  },
465
- set : function(n) {
466
- $(this).trigger('carouselSet', [n]);
515
+ set : function(n, callback) {
516
+ $(this).trigger('carouselSet', [n, callback]);
467
517
  }
468
518
  };
469
519
 
@@ -478,4 +528,4 @@
478
528
  $.error( 'Method ' + methodOrOptions + ' does not exist on jQuery.carousel' );
479
529
  }
480
530
  }; // Plugin end
481
- }( jQuery ));
531
+ }( jQuery ));
@@ -3,8 +3,7 @@
3
3
  data: [],
4
4
  placeholder: '',
5
5
  secondaryPlaceholder: '',
6
- autocompleteData: {},
7
- autocompleteLimit: Infinity,
6
+ autocompleteOptions: {},
8
7
  };
9
8
 
10
9
  $(document).ready(function() {
@@ -35,7 +34,7 @@
35
34
  }
36
35
 
37
36
  var curr_options = $.extend({}, materialChipsDefaults, options);
38
- self.hasAutocomplete = !$.isEmptyObject(curr_options.autocompleteData);
37
+ self.hasAutocomplete = !$.isEmptyObject(curr_options.autocompleteOptions.data);
39
38
 
40
39
  // Initialize
41
40
  this.init = function() {
@@ -150,7 +149,7 @@
150
149
  $currChips.removeClass('focus');
151
150
 
152
151
  // Remove active if empty
153
- if (!$currChips.data('chips').length) {
152
+ if ($currChips.data('chips') === undefined || !$currChips.data('chips').length) {
154
153
  $currChips.siblings('label').removeClass('active');
155
154
  }
156
155
  $currChips.siblings('.prefix').removeClass('active');
@@ -197,12 +196,11 @@
197
196
  };
198
197
 
199
198
  this.chips = function($chips, chipId) {
200
- var html = '';
199
+ $chips.empty();
201
200
  $chips.data('chips').forEach(function(elem){
202
- html += self.renderChip(elem);
201
+ $chips.append(self.renderChip(elem));
203
202
  });
204
- html += '<input id="' + chipId +'" class="input" placeholder="">';
205
- $chips.html(html);
203
+ $chips.append($('<input id="' + chipId +'" class="input" placeholder="">'));
206
204
  self.setPlaceholder($chips);
207
205
 
208
206
  // Set for attribute for label
@@ -210,7 +208,7 @@
210
208
  if (label.length) {
211
209
  label.attr('for', chipId);
212
210
 
213
- if ($chips.data('chips').length) {
211
+ if ($chips.data('chips')!== undefined && $chips.data('chips').length) {
214
212
  label.addClass('active');
215
213
  }
216
214
  }
@@ -218,35 +216,37 @@
218
216
  // Setup autocomplete if needed.
219
217
  var input = $('#' + chipId);
220
218
  if (self.hasAutocomplete) {
221
- input.autocomplete({
222
- data: curr_options.autocompleteData,
223
- limit: curr_options.autocompleteLimit,
224
- onAutocomplete: function(val) {
225
- self.addChip({tag: val}, $chips);
226
- input.val('');
227
- input.focus();
228
- },
229
- })
219
+ curr_options.autocompleteOptions.onAutocomplete = function(val) {
220
+ self.addChip({tag: val}, $chips);
221
+ input.val('');
222
+ input.focus();
223
+ }
224
+ input.autocomplete(curr_options.autocompleteOptions);
230
225
  }
231
226
  };
232
227
 
228
+ /**
229
+ * Render chip jQuery element.
230
+ * @param {Object} elem
231
+ * @return {jQuery}
232
+ */
233
233
  this.renderChip = function(elem) {
234
234
  if (!elem.tag) return;
235
235
 
236
- var html = '<div class="chip">' + elem.tag;
236
+ var $renderedChip = $('<div class="chip"></div>');
237
+ $renderedChip.text(elem.tag);
237
238
  if (elem.image) {
238
- html += ' <img src="' + elem.image + '"> ';
239
+ $renderedChip.prepend($('<img />').attr('src', elem.image))
239
240
  }
240
- html += '<i class="material-icons close">close</i>';
241
- html += '</div>';
242
- return html;
241
+ $renderedChip.append($('<i class="material-icons close">close</i>'));
242
+ return $renderedChip;
243
243
  };
244
244
 
245
245
  this.setPlaceholder = function($chips) {
246
- if ($chips.data('chips').length && curr_options.placeholder) {
246
+ if ($chips.data('chips') !== undefined && $chips.data('chips').length && curr_options.placeholder) {
247
247
  $chips.find('input').prop('placeholder', curr_options.placeholder);
248
248
 
249
- } else if (!$chips.data('chips').length && curr_options.secondaryPlaceholder) {
249
+ } else if (($chips.data('chips') === undefined || !$chips.data('chips').length) && curr_options.secondaryPlaceholder) {
250
250
  $chips.find('input').prop('placeholder', curr_options.secondaryPlaceholder);
251
251
  }
252
252
  };
@@ -267,7 +267,7 @@
267
267
  if (!self.isValid($chips, elem)) {
268
268
  return;
269
269
  }
270
- var chipHtml = self.renderChip(elem);
270
+ var $renderedChip = self.renderChip(elem);
271
271
  var newData = [];
272
272
  var oldData = $chips.data('chips');
273
273
  for (var i = 0; i < oldData.length; i++) {
@@ -276,7 +276,7 @@
276
276
  newData.push(elem);
277
277
 
278
278
  $chips.data('chips', newData);
279
- $(chipHtml).insertBefore($chips.find('input'));
279
+ $renderedChip.insertBefore($chips.find('input'));
280
280
  $chips.trigger('chip.add', elem);
281
281
  self.setPlaceholder($chips);
282
282
  };
@@ -1,11 +1,12 @@
1
1
  (function ($) {
2
- $.fn.collapsible = function(options) {
2
+ $.fn.collapsible = function(options, methodParam) {
3
3
  var defaults = {
4
4
  accordion: undefined,
5
5
  onOpen: undefined,
6
6
  onClose: undefined
7
7
  };
8
8
 
9
+ var methodName = options;
9
10
  options = $.extend(defaults, options);
10
11
 
11
12
 
@@ -17,11 +18,6 @@
17
18
 
18
19
  var collapsible_type = $this.data("collapsible");
19
20
 
20
- // Turn off any existing event handlers
21
- $this.off('click.collapse', '> li > .collapsible-header');
22
- $panel_headers.off('click.collapse');
23
-
24
-
25
21
  /****************
26
22
  Helper Functions
27
23
  ****************/
@@ -78,7 +74,11 @@
78
74
  }
79
75
 
80
76
  // Open collapsible. object: .collapsible-header
81
- function collapsibleOpen(object) {
77
+ function collapsibleOpen(object, noToggle) {
78
+ if (!noToggle) {
79
+ object.toggleClass('active');
80
+ }
81
+
82
82
  if (options.accordion || collapsible_type === "accordion" || collapsible_type === undefined) { // Handle Accordion
83
83
  accordionOpen(object);
84
84
  } else { // Handle Expandables
@@ -123,9 +123,34 @@
123
123
  return object.closest('li > .collapsible-header');
124
124
  }
125
125
 
126
+
127
+ // Turn off any existing event handlers
128
+ function removeEventHandlers() {
129
+ $this.off('click.collapse', '> li > .collapsible-header');
130
+ }
131
+
126
132
  /***** End Helper Functions *****/
127
133
 
128
134
 
135
+ // Methods
136
+ if (methodName === 'destroy') {
137
+ removeEventHandlers();
138
+ return;
139
+ } else if (methodParam >= 0 &&
140
+ methodParam < $panel_headers.length) {
141
+ var $curr_header = $panel_headers.eq(methodParam);
142
+ if ($curr_header.length &&
143
+ (methodName === 'open' ||
144
+ (methodName === 'close' &&
145
+ $curr_header.hasClass('active')))) {
146
+ collapsibleOpen($curr_header);
147
+ }
148
+ return;
149
+ }
150
+
151
+
152
+ removeEventHandlers();
153
+
129
154
 
130
155
  // Add click handler to only direct collapsible header children
131
156
  $this.on('click.collapse', '> li > .collapsible-header', function(e) {
@@ -135,19 +160,17 @@
135
160
  element = getPanelHeader(element);
136
161
  }
137
162
 
138
- element.toggleClass('active');
139
-
140
163
  collapsibleOpen(element);
141
164
  });
142
165
 
143
166
 
144
167
  // Open first active
145
168
  if (options.accordion || collapsible_type === "accordion" || collapsible_type === undefined) { // Handle Accordion
146
- collapsibleOpen($panel_headers.filter('.active').first());
169
+ collapsibleOpen($panel_headers.filter('.active').first(), true);
147
170
 
148
171
  } else { // Handle Expandables
149
172
  $panel_headers.filter('.active').each(function() {
150
- collapsibleOpen($(this));
173
+ collapsibleOpen($(this), true);
151
174
  });
152
175
  }
153
176