get project features to pass

This commit is contained in:
Reinier Balt 2012-05-12 14:48:56 +02:00
parent d432d91cc8
commit 901a5ff0d2
6 changed files with 12 additions and 12 deletions

View file

@ -726,7 +726,7 @@ var ProjectListPage = {
var highlight = function(){ var highlight = function(){
$('h2#project_name').effect('highlight', {}, 500); $('h2#project_name').effect('highlight', {}, 500);
}; };
$.post(relative_to_root('projects/update/'+project_id), { $.post(relative_to_root('projects/'+project_id), {
'project[name]': value, 'project[name]': value,
'update_project_name': 'true', 'update_project_name': 'true',
'_method': 'put' '_method': 'put'

View file

@ -84,7 +84,7 @@ class ApplicationController < ActionController::Base
return "#{deferred_count.to_s}&nbsp;#{word}".html_safe return "#{deferred_count.to_s}&nbsp;#{word}".html_safe
else else
word = I18n.t('common.actions_midsentence', :count => count) word = I18n.t('common.actions_midsentence', :count => count)
return "#{count.to_s}&nbsp;#{word}".html_safe return "#{count}&nbsp;#{word}".html_safe
end end
end end

View file

@ -18,17 +18,17 @@ module ProjectsHelper
end end
def project_next_prev def project_next_prev
html = '' html = ""
unless @previous_project.nil? if @previous_project
project_name = truncate(@previous_project.name, :length => 40, :omission => "...") project_name = truncate(@previous_project.name, :length => 40, :omission => "...")
html << link_to_project(@previous_project, "&laquo; #{project_name}") html << link_to_project(@previous_project, "&laquo; #{project_name}".html_safe)
end end
html << ' | ' if @previous_project && @next_project html << " | " if @previous_project && @next_project
unless @next_project.nil? if @next_project
project_name = truncate(@next_project.name, :length => 40, :omission => "...") project_name = truncate(@next_project.name, :length => 40, :omission => "...")
html << link_to_project(@next_project, "#{project_name} &raquo;") html << link_to_project(@next_project, "#{project_name} &raquo;".html_safe)
end end
html html.html_safe
end end
def project_next_prev_mobile def project_next_prev_mobile

View file

@ -17,7 +17,7 @@ function clear_form() {
} }
function html_for_error_messages() { function html_for_error_messages() {
return "<%= escape_javascript(error_messages_for('project')) %>"; return "<%= escape_javascript(get_list_of_error_messages_for(@note)) %>";
} }
function html_for_note_summary() { function html_for_note_summary() {

View file

@ -2,7 +2,7 @@
project = project_form project = project_form
%> %>
<% form_for(project, :html => { <%= form_for(project, :html => {
:id => dom_id(project, 'edit_form'), :id => dom_id(project, 'edit_form'),
:class => "inline-form edit-project-form", :class => "inline-form edit-project-form",
:method => :put }) do :method => :put }) do

View file

@ -12,7 +12,7 @@ suppress_delete_button ||= false
<div class="project_description"> <div class="project_description">
<span class="<%= needsreview_class( project ) %>"> <span class="<%= needsreview_class( project ) %>">
<%= link_to_project( project ) %> <%= link_to_project( project ) %>
<%= " (" + count_undone_todos_and_notes_phrase(project) + ")" %> <%= " (#{count_undone_todos_and_notes_phrase(project)})".html_safe %>
</span> </span>
</div> </div>
</div> </div>