punchcard 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/public/js/app.js +13 -9
- data/punchcard.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/public/js/app.js
CHANGED
@@ -5,15 +5,6 @@ function update_status() {
|
|
5
5
|
$.each(json, function(index, person) {
|
6
6
|
update_person(person);
|
7
7
|
});
|
8
|
-
$('abbr.timeago').timeago();
|
9
|
-
|
10
|
-
title = 'Punchcard.'
|
11
|
-
if ($('.gravatar.pending').size() > 0) {
|
12
|
-
title = 'In office: ' + $('.gravatar.pending').map(function() {
|
13
|
-
return $(this).attr('title').replace(/[^A-Z]/g, '');
|
14
|
-
}).get().join(', ');
|
15
|
-
}
|
16
|
-
$('head title').html(title);
|
17
8
|
});
|
18
9
|
};
|
19
10
|
|
@@ -26,8 +17,21 @@ function update_person(json) {
|
|
26
17
|
} else {
|
27
18
|
$('#people #' + json._id).replaceWith(rendered_template);
|
28
19
|
};
|
20
|
+
$('abbr.timeago').timeago();
|
21
|
+
update_title();
|
29
22
|
};
|
30
23
|
|
24
|
+
// Update page title based upon people present in office
|
25
|
+
function update_title() {
|
26
|
+
title = 'Punchcard.'
|
27
|
+
if ($('.gravatar.pending').size() > 0) {
|
28
|
+
title = 'In office: ' + $('.gravatar.pending').map(function() {
|
29
|
+
return $(this).attr('title').replace(/[^A-Z]/g, '');
|
30
|
+
}).get().join(', ');
|
31
|
+
}
|
32
|
+
$('head title').html(title);
|
33
|
+
}
|
34
|
+
|
31
35
|
$(document).ready(function() {
|
32
36
|
$( "#personTemplate" ).template( "personTemplate" );
|
33
37
|
|
data/punchcard.gemspec
CHANGED