You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/06/03 18:46:08 UTC
git commit: [#6307] Only update milestone with matching name
Updated Branches:
refs/heads/db/6307 3928fea03 -> ec2a41b1e
[#6307] Only update milestone with matching name
Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/ec2a41b1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ec2a41b1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ec2a41b1
Branch: refs/heads/db/6307
Commit: ec2a41b1e81768ea191cea48889c427d452a603a
Parents: 3928fea
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Mon Jun 3 16:45:38 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Mon Jun 3 16:45:38 2013 +0000
----------------------------------------------------------------------
ForgeTracker/forgetracker/tracker_main.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ec2a41b1/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 223911b..aabf321 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -313,8 +313,8 @@ class ForgeTrackerApp(Application):
success: function(data) {
var $spans = $('.search_bin > span');
$.each(data.bin_counts, function(i, item) {
- $spans.each(function(){
- if ($(this).text() == item.label) {
+ $spans.each(function() {
+ if ($(this).text() === item.label) {
$(this).after('<small>' + item.count + '</small>').fadeIn('fast');
}
});
@@ -327,8 +327,8 @@ class ForgeTrackerApp(Application):
success: function(data) {
var $spans = $('.milestones > span');
$.each(data.milestone_counts, function(i, item) {
- $spans.each(function(){
- if ($(this)) {
+ $spans.each(function() {
+ if ($(this).text() === item.name) {
$(this).after('<small>' + item.count + '</small>').fadeIn('fast');
}
});