diff --git a/app/assets/javascripts/app/views/hovercard_view.js b/app/assets/javascripts/app/views/hovercard_view.js index 72ebe121a..9fe895bfe 100644 --- a/app/assets/javascripts/app/views/hovercard_view.js +++ b/app/assets/javascripts/app/views/hovercard_view.js @@ -130,7 +130,7 @@ app.views.Hovercard = app.views.Base.extend({ // set hashtags this.hashtags.empty(); this.hashtags.html($(_.map(person.profile.tags, function(tag) { - return $("", {href: Routes.tag(tag)}).text("#" + tag)[0]; + return $("", {href: Routes.tag(tag)}).text("#" + tag)[0]; }))); } }, diff --git a/app/assets/javascripts/app/views/locator.js b/app/assets/javascripts/app/views/locator.js index 364f3fa39..56de93746 100644 --- a/app/assets/javascripts/app/views/locator.js +++ b/app/assets/javascripts/app/views/locator.js @@ -19,7 +19,7 @@ app.views.Location = Backbone.View.extend({ var locator = new OSM.Locator(); locator.getAddress(function(address, latlng){ $(element).empty(); - $("", + $("", { id: "location_address", value: address, type: "text", diff --git a/app/assets/javascripts/app/views/publisher_view.js b/app/assets/javascripts/app/views/publisher_view.js index 84f957395..3dcd4ff50 100644 --- a/app/assets/javascripts/app/views/publisher_view.js +++ b/app/assets/javascripts/app/views/publisher_view.js @@ -351,7 +351,7 @@ app.views.Publisher = Backbone.View.extend({ }; var previewPost = new app.views.PreviewPost({model: new app.models.Post(previewMessage)}).render().el; - return $("
").append(previewPost).html(); + return $("").append(previewPost).html(); }, keyDown : function(evt) { diff --git a/app/assets/javascripts/mobile/mobile_comments.js b/app/assets/javascripts/mobile/mobile_comments.js index 78dbe5e15..270799f7b 100644 --- a/app/assets/javascripts/mobile/mobile_comments.js +++ b/app/assets/javascripts/mobile/mobile_comments.js @@ -185,8 +185,8 @@ addNewComments: function(bottomBar, data) { if ($(".comment-container", bottomBar).length === 0) { - $(".show-comments", bottomBar).after($("", {"class": "comment-container"})); - $(".comment-container", bottomBar).append($("