diff --git a/app/assets/javascripts/toolbar.js b/app/assets/javascripts/toolbar.js
index 78ec4cd..f611ac4 100644
--- a/app/assets/javascripts/toolbar.js
+++ b/app/assets/javascripts/toolbar.js
@@ -33,7 +33,7 @@
table.before(''); // PUT not POST
table.before(''); // Auth token
- table.after('
I18n.t("helpers.project.project_settings_text")
');
+ table.after('' + I18n.t("helpers.project.project_settings_text") + '
');
// Default name column
table.before('');
@@ -50,11 +50,11 @@
input.attr('checked', 'checked');
}
- thead.append(' | ');
+ thead.append(' | ');
tbody.append(' | ')
var submit = $(' | ').appendTo(tfoot);
- cancel = $('I18n.t("helpers.cancel") | ').appendTo(tfoot);
+ cancel = $('' + I18n.t("helpers.cancel") + ' | ').appendTo(tfoot);
cancel.click(function(e) {
e.preventDefault();
@@ -67,7 +67,7 @@
/*
'My plans' filtering
*/
- var no_matches_message = $('| I18n.t("helpers.project.filter.no_matches") |
').appendTo($('#dmp_table tbody')),
+ var no_matches_message = $('| ' + I18n.t("helpers.project.filter.no_matches") + ' |
').appendTo($('#dmp_table tbody')),
rows = $('#dmp_table tbody tr'),
filter = $('#filter');
diff --git a/app/views/plans/_list_comments.html.erb b/app/views/plans/_list_comments.html.erb
index 3dae926..ca42f53 100644
--- a/app/views/plans/_list_comments.html.erb
+++ b/app/views/plans/_list_comments.html.erb
@@ -50,7 +50,7 @@
<% comments_not_archived = comments.where("archived IS NULL") %>
-<% latest_comment = comments_not_archived.first(:order => "updated_at DESC") %>
+<% latest_comment = comments_not_archived.order("updated_at DESC").first %>
<% if !latest_comment.nil? then%>