[#3294] Expand the new form if the project doesn't have any deliverables yet.

This commit is contained in:
Eric Davis
2009-11-11 13:16:00 -08:00
parent d552aa7f6f
commit a53ceb2804
2 changed files with 13 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class DeliverablesController < ApplicationController
@budget = Budget.new(@project.id)
@display_form = params[:new].present?
@display_form = params[:new].present? || @deliverables.empty?
respond_to do |format|
format.html { render :action => 'index', :layout => !request.xhr? }