get all non-wip scenarios running again for context and project

This commit is contained in:
Reinier Balt 2010-11-09 23:12:21 +01:00
parent 0e81706fee
commit d1b35090ab
7 changed files with 41 additions and 66 deletions

View file

@ -23,18 +23,6 @@ suppress_edit_button ||= false
<%= link_to_delete_context(context, image_tag( "blank.png", :title => t('contexts.delete_context'), :class=>"delete_item")) %>
<%= suppress_edit_button ? "" : link_to_edit_context(context, image_tag( "blank.png", :title => t('contexts.edit_context'), :class=>"edit_item")) %>
<% # = # link_to_remote(
#image_tag( "blank.png", :title => "Delete context", :class=>"delete_item"),
#:url => {:controller => 'contexts', :action => 'destroy', :id => context.id},
#:method => 'delete',
#:with => "'_source_view=#{@source_view}'",
#:before => "$('#{dom_id(context)}').block({message:null});",
#:complete => "$('#{dom_id(context)}').unblock();",
#:confirm => "Are you sure that you want to delete the context '#{context.name}'? Be aware that this will also delete all (repeating) actions in this context!",
#:html => { :id => dom_id(context, 'delete') }
#)
%>
</div>
</div>
<div id="<%= dom_id(context, 'edit') %>" class="edit-form" style="display:none;">

View file

@ -1,6 +1,6 @@
<% if @saved -%>
pageNotify('notice', '<%=t('projects.project_saved_status')%>', 5);
page_notify('notice', '<%=t('projects.project_saved_status')%>', 5);
<% if source_view_is :project_list -%>
@ -10,10 +10,11 @@
replace_project_form_with_updated_project();
<% end -%>
ProjectListPage.update_all_states_count(<%=@active_projects_count%>, <%=@hidden_projects_count%>, <%=@completed_projects_count%>)
ProjectListPage.update_all_states_count(<%=@active_projects_count%>, <%=@hidden_projects_count%>, <%=@completed_projects_count%>);
ProjectListPage.show_or_hide_all_state_containers(<%= @show_active_projects %>, <%= @show_hidden_projects %>, <%= @show_completed_projects %>);
<% else # assume source_view :project %>
<% else # assume source_view :project
-%>
remove_project_edit_form();
update_and_show_project_settings();
@ -53,7 +54,7 @@ function update_and_show_project_settings() {
}
function update_sidebar() {
$('#sidebar').html();
$('#sidebar').html(html_for_sidebar());
}
function replace_project_form_with_updated_project() {