wcc-styles 2.1.0 → 2.2.0

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: d4a36b807d32f04e4a61069b28f512588b560972
4
- data.tar.gz: 8ac3fae72ae06cf8845955f8eff6ad73f952c2a8
3
+ metadata.gz: 65303bba7507abd32750af7e353ddf78daca8105
4
+ data.tar.gz: 61874be705c0e47bdd446c432db977db99c7ecd9
5
5
  SHA512:
6
- metadata.gz: a10a842c11c29cad71112b95b6667579a4392bf4489dbe36f7cd13bceefb8646bfacf7176fd37799cd873cfd6254394f26c0f051bf8fcca01bf0c11d38fc099c
7
- data.tar.gz: 313fa133ac8c0c8b2a763cb13c9efe95808fc7a6d373643583ca788aff2798ab6048b91bf1ad9a4ed26ae3c47b41ef1cc6be30550512d1f9bf554fd31d6cbcd5
6
+ metadata.gz: 78fc1284a2e1a511aec61545d0bc2d43e487a3ab15f9be166657c0a73442c1e7ad566f3d7ded80a7d1ec9b3b4872def84482320af14698db210463f1ffa6ff2c
7
+ data.tar.gz: 9192ebc53be59510340e0a32d13aa59fa771ea31871ed02eb9f079f45e31c45b207fba06817962c5ee88cef4de4cf20c0b7705b5e977e1fae30573b9507a0500
@@ -25,28 +25,33 @@ WCC.datetimepicker = (function() {
25
25
  timezone: "America/Chicago"
26
26
  };
27
27
 
28
+ dtp.initializeAll = function($, selector) {
29
+ selector = selector ? selector : "[data-datetimepicker]";
30
+ $(selector).each(function(i, item) {
31
+ var $item = $(item);
32
+ var $input = $($item.data('datetimepicker'));
33
+ var options = $item.data('datetimepicker-options');
34
+
35
+ item.config = $.extend({}, WCC.datetimepicker.defaultConfig, options);
36
+ $item.datetimepicker(item.config);
37
+
38
+ if (!$input.length) return;
39
+
40
+ $item
41
+ .off('datetimepicker.change')
42
+ .on('datetimepicker.change', function(event) {
43
+ var time = moment.tz(this.value, this.config.format, this.config.timezone);
44
+ if (time.isValid()) {
45
+ $input.val(time.toISOString());
46
+ } else {
47
+ $input.val('');
48
+ }
49
+ });
50
+ });
51
+ };
52
+
28
53
  return dtp;
29
54
  }());
30
55
 
31
- $(function() {
32
- $("[data-datetimepicker]").each(function(i, item) {
33
- var $item = $(item);
34
- var $input = $($item.data('datetimepicker'));
35
- var options = $item.data('datetimepicker-options');
36
-
37
- item.config = $.extend({}, WCC.datetimepicker.defaultConfig, options);
38
- $item.datetimepicker(item.config);
39
-
40
- if (!$input.length) return;
41
-
42
- $item.on('change', function(event) {
43
- var time = moment.tz(this.value, this.config.format, this.config.timezone);
44
- if (time.isValid()) {
45
- $input.val(time.toISOString());
46
- } else {
47
- $input.val('');
48
- }
49
- });
50
- });
51
- });
56
+ $(WCC.datetimepicker.initializeAll);
52
57
 
@@ -34,6 +34,7 @@ ul.nav {
34
34
  &.tabs,
35
35
  &.nav-tabs {
36
36
  border-bottom: 1px solid #ddd;
37
+ width: 100%;
37
38
 
38
39
  > li {
39
40
  float: left;
@@ -66,7 +67,6 @@ ul.nav {
66
67
  // Justified Tabs
67
68
  &.justified,
68
69
  &.nav-justified {
69
- width: 100%;
70
70
  border-bottom: 0;
71
71
 
72
72
  > li {
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Styles
3
- VERSION = "2.1.0"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Community Church
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails