Use double quotes inside ERB

We were using single quotes inside ERB code when that code was inside
HTML double quotes.
This commit is contained in:
Javi Martín
2019-03-25 13:31:26 +01:00
parent 4c35df4812
commit 3e4e65ead7
65 changed files with 107 additions and 107 deletions

View File

@@ -1,7 +1,7 @@
if ($(".comment").length == 0) {
$("#comments-box").append("<%= j render('comments_box', annotation: @annotation) %>").show();
$("#comments-box").append("<%= j render("comments_box", annotation: @annotation) %>").show();
} else {
$("#comments-box #comments").append("<%= j render('comments', annotation: @annotation) %>");
$("#comments-box #comments").append("<%= j render("comments", annotation: @annotation) %>");
var current_annotation_link = $("#annotation-link a").attr("href")
var sub_annotation_ids = current_annotation_link.split("=")[1];

View File

@@ -1 +1 @@
$("#comments-box").html("<%= j render('form') %>");
$("#comments-box").html("<%= j render("form") %>");