incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#6307] Only update milestone with matching name
Date Mon, 03 Jun 2013 16:46:08 GMT
Updated Branches:
  refs/heads/db/6307 3928fea03 -> ec2a41b1e


[#6307] Only update milestone with matching name

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@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 <tvansteenburgh@gmail.com>
Authored: Mon Jun 3 16:45:38 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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');
                                 }
                             });


Mime
View raw message