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 +4 -4
- data/app/assets/javascripts/clockpunch.js +4 -2
- data/app/assets/stylesheets/clockpunch.css +6 -4
- data/lib/clockpunch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3019a5c03b1a0712c8d6d1b2fbb89817c1bc07c3
|
4
|
+
data.tar.gz: 3bcbd8d4c273b1a6dd751fd9444ca9d93ac5b8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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: #
|
4
|
-
border: 1px solid #
|
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 #
|
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 #
|
29
|
+
border-right: 6px solid #eee;
|
30
30
|
border-bottom: 6px solid transparent; }
|
31
|
+
|
32
|
+
/*# sourceMappingURL=clockpunch.css.map */
|
data/lib/clockpunch/version.rb
CHANGED
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.
|
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
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|