clockpunch 0.1.10 → 0.1.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: aeca783abda9774cf6ecfbd361e3e75fca0e0145
4
- data.tar.gz: 6512f18cfcea4658fb7f050b7f53a2066d68be44
3
+ metadata.gz: 3019a5c03b1a0712c8d6d1b2fbb89817c1bc07c3
4
+ data.tar.gz: 3bcbd8d4c273b1a6dd751fd9444ca9d93ac5b8ab
5
5
  SHA512:
6
- metadata.gz: d3b1027604b68187921f46b17102544280c3d09c289aa6ac77e85369b5a06e342b52d246122871622a232d9de092c446fd3db28d7f37c61ac36c3c3871fd0074
7
- data.tar.gz: cc6983352606aaca5d0a2f9aa63bb0f9af315ea4b9db617f0c2492e9c76b54cfbcb1fefafb3115ee818c056e3e61e73a400ff989e4baa5ad7d320bed90e99784
6
+ metadata.gz: 2d80398a0d4d96b90db4fa0381b7cea537515bc942c6b9c35062eb79f02ed690f57be03fb588a9042e2e47470a66fba0f576a130c9990b102d992a0d68956625
7
+ data.tar.gz: 6e6b5ad072b5f775817501e8246df3ab99bd1c0567274f03908e9ce6f38886b659697b604cb46af2e41252aa04ef1e5683c0bfe4199d9ff2543a1d8ffe200f16
@@ -63,7 +63,9 @@ https://github.com/tablexi/clockpunch
63
63
  $this.data('timeparser').$hidden_field.val(minutes).trigger('change');
64
64
  return $this.val(self.parser.from_minutes(minutes));
65
65
  });
66
- this.$elem.trigger('change');
66
+ if (this.$elem.val() || !this.$elem.data("allow-init-blank")) {
67
+ this.$elem.trigger('change');
68
+ }
67
69
  this.create_tooltip();
68
70
  return this.$elem.addClass('clockpunch-applied');
69
71
  };
@@ -102,7 +104,7 @@ https://github.com/tablexi/clockpunch
102
104
  $wrapper = $('<div/>').css('position', 'relative').css('display', 'inline-block');
103
105
  this.$elem.wrap($wrapper);
104
106
  this.$tooltip = $('<span/>').addClass('clockpunch-tooltip').hide();
105
- this.$tooltip.text(this.$elem.val());
107
+ this.$tooltip.text(this.$elem.val() || this.parser.transform(0));
106
108
  this.$elem.after(this.$tooltip);
107
109
  this.$elem.data('tooltip', this.$tooltip);
108
110
  this.$elem.bind('keyup', function() {
@@ -1,7 +1,7 @@
1
1
  .clockpunch-tooltip {
2
2
  position: absolute;
3
- background: #eeeeee;
4
- border: 1px solid #cccccc;
3
+ background: #eee;
4
+ border: 1px solid #ccc;
5
5
  padding: 10px 0.5em;
6
6
  border-radius: 0.5em;
7
7
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
@@ -16,7 +16,7 @@
16
16
  left: -7px;
17
17
  top: 12px;
18
18
  border-top: 7px solid transparent;
19
- border-right: 7px solid #eeeeee;
19
+ border-right: 7px solid #eee;
20
20
  border-bottom: 7px solid transparent;
21
21
  border-right-color: rgba(0, 0, 0, 0.2); }
22
22
  .clockpunch-tooltip:after {
@@ -26,5 +26,7 @@
26
26
  left: -6px;
27
27
  top: 13px;
28
28
  border-top: 6px solid transparent;
29
- border-right: 6px solid #eeeeee;
29
+ border-right: 6px solid #eee;
30
30
  border-bottom: 6px solid transparent; }
31
+
32
+ /*# sourceMappingURL=clockpunch.css.map */
@@ -1,3 +1,3 @@
1
1
  module Clockpunch
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockpunch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hanggi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass