irontask 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/irontask/public/css/main.css +13 -2
- data/lib/irontask/public/js/main.js +19 -7
- data/lib/irontask/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: 1fc9af9f28214fe8649397ac1efe334dd1a4ba6e
|
4
|
+
data.tar.gz: 54bca0d4e9d6dd1c2bd958bdf7ad8ca38a1522b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa1e5435c624633491c4b91b590330350f0de920dc2a873774f3f3f1974d6de268ffe3c042f5871a959543b1a228991e4a7ebd3c6b9c6457615ebc3d3a6deac
|
7
|
+
data.tar.gz: b5c02b6889628793807b34b3d2532a3bb1125984c2fd47aa6a208c6a995f09b30fc3a62f578126093dc6856dbd7c82fc5d77f9b697f95933d0f74ad658dbed1a
|
@@ -89,6 +89,8 @@ body {
|
|
89
89
|
width: 1em;
|
90
90
|
float: left;
|
91
91
|
clear: left;
|
92
|
+
border: none;
|
93
|
+
background: none;
|
92
94
|
}
|
93
95
|
|
94
96
|
.list.container .task .checkbox::before {
|
@@ -143,16 +145,25 @@ body {
|
|
143
145
|
.list.container .new-task.input:focus {
|
144
146
|
border: 0;
|
145
147
|
outline: 0;
|
148
|
+
background: #f5f5f5;
|
149
|
+
border-bottom: 1px solid #CCC;
|
146
150
|
}
|
147
151
|
|
148
152
|
.list.container .new-task.input {
|
149
153
|
border: 0;
|
150
154
|
font-size: 2em;
|
151
|
-
padding: 0.5em;
|
155
|
+
padding: 0.5em 2em;
|
152
156
|
width: 100%;
|
153
157
|
box-sizing: border-box;
|
154
158
|
-webkit-box-sizing: border-box;
|
155
159
|
-moz-box-sizing: border-box;
|
156
160
|
border-bottom: 1px solid #CCC;
|
157
|
-
|
161
|
+
}
|
162
|
+
|
163
|
+
.list.container .new-task.input:focus::after {
|
164
|
+
content: '\23ce';
|
165
|
+
color: #999;
|
166
|
+
right: 13%;
|
167
|
+
margin-top: -35px;
|
168
|
+
position: absolute;
|
158
169
|
}
|
@@ -29,19 +29,30 @@ $(function() {
|
|
29
29
|
alert('Something went wrong!');
|
30
30
|
}
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
$('.list').on('change', '.task .checkbox', function() {
|
35
|
-
var id = $(this).parent().data('id');
|
36
|
-
$.ajax('/task/update', {
|
32
|
+
var update = function(id, checked) {
|
33
|
+
$.ajax('/task/update', {
|
37
34
|
type: 'POST',
|
38
35
|
data: {
|
39
36
|
id: id,
|
40
37
|
task: {
|
41
|
-
done:
|
38
|
+
done: checked
|
42
39
|
}
|
43
40
|
}
|
44
41
|
}).fail(errorCallback).always(refresh);
|
42
|
+
}
|
43
|
+
|
44
|
+
refresh();
|
45
|
+
|
46
|
+
$('.list').on('change', '.task .checkbox', function() {
|
47
|
+
var id = $(this).parent().data('id');
|
48
|
+
var checked = this.checked;
|
49
|
+
update(id, checked);
|
50
|
+
});
|
51
|
+
|
52
|
+
$('.list').on('dblclick', '.task', function() {
|
53
|
+
var id = $(this).data('id');
|
54
|
+
var checkbox = $(this).find('.checkbox')[0];
|
55
|
+
update(id, !checkbox.checked);
|
45
56
|
});
|
46
57
|
|
47
58
|
$('.list').on('click', '.task .delete', function() {
|
@@ -60,7 +71,8 @@ $(function() {
|
|
60
71
|
}
|
61
72
|
}).fail(errorCallback).always(refresh);
|
62
73
|
this.value = '';
|
74
|
+
$(this).focus();
|
63
75
|
}
|
64
|
-
});
|
76
|
+
}).focus();
|
65
77
|
|
66
78
|
});
|
data/lib/irontask/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irontask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gr4y
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|