From 3f3e71f43a2386b7657dbf76ae2faa0652cde57c Mon Sep 17 00:00:00 2001 From: BelieveC Date: Tue, 7 Feb 2017 01:40:28 +0530 Subject: [PATCH] Fixes #1260 ,Change proposal update page's requirement field behavior i# with '#' will be ignored, and an empty message aborts the commit. --- app/views/proposals/_proposal_form.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/proposals/_proposal_form.html.haml b/app/views/proposals/_proposal_form.html.haml index ed8d3c02..16f3fba2 100644 --- a/app/views/proposals/_proposal_form.html.haml +++ b/app/views/proposals/_proposal_form.html.haml @@ -55,9 +55,9 @@ %p.text-right = link_to '#description', 'data-toggle' => 'collapse' do Do you require something special? - .collapse#description + + #description{class:"collapse#{'in' if @event.description.present?}"} = f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.' - %p.text-right = f.submit 'Update Proposal', class: 'btn btn-success'