fix clearing show_from fails

caused by slightly different (better) workings of aasm
This commit is contained in:
Reinier Balt 2013-05-03 19:28:26 +02:00
parent 883ea2b968
commit f891ee86fe
8 changed files with 80 additions and 32 deletions

View file

@ -64,7 +64,7 @@
}
function html_for_new_context() {
return "<%= @saved && @new_context_created ? escape_javascript(render(:partial => @todo.context, :locals => { :settings => {:collapsible => true} })) : "" %>";
return "<%= @new_context_created ? escape_javascript(render(:partial => @todo.context, :locals => { :settings => {:collapsible => true} })) : "" %>";
}
<% end -%>