Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-kapoor committed Jan 7, 2014
1 parent 1070ee4 commit b265554
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/views/fullcalendar_engine/events/_edit_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@
<%=f.label :all_day %>
<%=f.check_box :all_day %>
</p>
<%if false%>
<%period = (@event.event_series)? @event.event_series.period : nil -%>
<p>
<%=f.label :period, "Repeats" %>
<%=f.select :period, FullcalendarEngine::Event::REPEATS,{:selected => period}, :onchange => "FullcalendarEngine.Events.showPeriodAndFrequency(this.value);" %>
</p>
<%frequency = (@event.event_series)?@event.event_series.frequency : nil -%>
<p id = "frequency" style = "display:<%(period)? '' : 'none'%>;">
<%=f.label :frequency, "Repeat every" %>
<%=f.select :frequency, (1..30).to_a, {:selected => frequency} %> <span id = "period"></span>
</p>
<%end%>

<%=f.hidden_field :id, :value => @event.id%>
<%=f.hidden_field :commit_button, :value => ""%>
<p>
Expand Down

0 comments on commit b265554

Please sign in to comment.