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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e145a38c2f2a43612e35c6f94643f8b600aad00d
4
- data.tar.gz: d151c3f82cd26a762ef65332c5d617c2cc88898f
3
+ metadata.gz: 1fc9af9f28214fe8649397ac1efe334dd1a4ba6e
4
+ data.tar.gz: 54bca0d4e9d6dd1c2bd958bdf7ad8ca38a1522b1
5
5
  SHA512:
6
- metadata.gz: ebf5c313dafb272255eaa00fd3bbb000f628f80431b2ee5435981a8765721987c3d0984a3aca8c375eb4d6cd1a3acb5c549d9efd388f9314c1925d328d25d32e
7
- data.tar.gz: 0321745a11bb0c6ebaa9683f949bd466fa46c54078f354faddf375c66343e93bc7dc0b780ef7c3f13af855740997e1db13386d5fdc66c24e7b742662e3c4e0f3
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
- padding-left: 2em;
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
- refresh();
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: this.checked
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
  });
@@ -1,3 +1,3 @@
1
1
  module Irontask
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
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.2
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-09-08 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler