Permalink
Browse files

Fixed issue with filters and tags with special characters. Fixed a ty…

…po in a test expectation
  • Loading branch information...
1 parent 1219ef1 commit 2d55edf19eb8de7f7ac0caab75b41c32dbb9d23e @Chandu Chandu committed Mar 27, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 index.html
  2. +1 −1 javascripts/main.js
  3. +1 −1 tests/spec/ProjectsServiceSpec.js
View
@@ -123,7 +123,7 @@ <h2 id="project_tagline">explore open source projects and <a href="http://nikcod
<% if (project.tags) { %>
<p class="tags">
<% _.each(project.tags, function(tag, i) { %>
- <a href="#/tags/<%=tag%>"><%=tag%></a><%= i != project.tags.length-1 ? "," : "" %>
+ <a href="#/tags/<%=encodeURIComponent(tag)%>"><%=tag%></a><%= i != project.tags.length-1 ? "," : "" %>
<% }) %>
</p>
<% } %>
View
@@ -15,7 +15,7 @@
no_results_text: "No tags found by that name.",
width: "95%"
}).val(tags).trigger('chosen:updated').change(function(e) {
- window.location.href = "#/tags/" + ($(this).val() || "");
+ window.location.href = "#/tags/" + encodeURIComponent(($(this).val() || ""));
});
};
@@ -6,7 +6,7 @@ describe("ProjectsService", function() {
projectsService = new ProjectsService(sampleProjects);
});
- it("should be not be undefined", function() {
+ it("should be defined", function() {
expect(projectsService).toBeDefined();
});

0 comments on commit 2d55edf

Please sign in to comment.