Skip to content

Commit

Permalink
Merge pull request taitems#4 from nathancolgate/master
Browse files Browse the repository at this point in the history
var id VS. $(a).attr("id")
  • Loading branch information
taitems committed Apr 28, 2012
2 parents ce4724c + e4cfe12 commit 4c7780f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery.fn.gantt.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
id = id ? id : "";
var si = id.indexOf("-") + 1;
cd = cd.getFullYear() + "-" + cd.getDayForWeek().getWeekOfYear();
var ed = $(a).attr("id").substring(si, $(a).attr("id").length);
var ed = id.substring(si, id.length);
return cd === ed;
}
});
Expand All @@ -61,7 +61,7 @@
var id = $(a).attr("id");
id = id ? id : "";
var si = id.indexOf("-") + 1;
var ed = $(a).attr("id").substring(si, $(a).attr("id").length);
var ed = id.substring(si, id.length);
return cd === ed;
}
});
Expand Down

0 comments on commit 4c7780f

Please sign in to comment.