mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-23 17:26:11 +01:00
Removed the defunct 'date_preview' stuff, because accidental typing of characters in the date box was leading to spurious Server error warning appearing, which was confusing and annoying.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@381 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
4a97b39928
commit
39b8cc763b
4 changed files with 1 additions and 22 deletions
|
|
@ -3,7 +3,7 @@ class TodoController < ApplicationController
|
|||
helper :todo
|
||||
|
||||
append_before_filter :init, :except => [ :destroy, :completed, :completed_archive, :check_tickler ]
|
||||
layout 'standard', :except => :date_preview
|
||||
layout 'standard'
|
||||
|
||||
# Main method for listing tasks
|
||||
# Set page title, and fill variables with contexts and done and not-done tasks
|
||||
|
|
@ -33,18 +33,6 @@ class TodoController < ApplicationController
|
|||
wants.xml { render :action => 'list.rxml', :layout => false }
|
||||
end
|
||||
end
|
||||
|
||||
def date_preview
|
||||
return if params["todo_due"].blank?
|
||||
@date = parse_date_per_user_prefs(params["todo_due"])
|
||||
|
||||
if @date.nil?
|
||||
@form_date = "Invalid date"
|
||||
else
|
||||
@form_date = @date.strftime("%a %b %d %Y")
|
||||
end
|
||||
render :partial => "shared/date_preview", :layout => false
|
||||
end
|
||||
|
||||
def create
|
||||
@item = @user.todos.build
|
||||
|
|
|
|||
|
|
@ -51,18 +51,10 @@ Event.observe($('todo_project_name'), "click", projectAutoCompleter.activate.bin
|
|||
<br /> <label for="todo_show_from">Show from</label><br />
|
||||
<%= text_field("todo", "show_from", "size" => 10, "class" => "Date", "onfocus" => "Calendar.setup", "tabindex" => 6, "autocomplete" => "off") %><br />
|
||||
|
||||
<div id="date-preview" style="display: none;"></div>
|
||||
|
||||
<%= source_view_tag( @source_view ) %>
|
||||
<input type="submit" value="Add item" tabindex="7" />
|
||||
<% end -%><!--[eoform:todo]-->
|
||||
|
||||
<%= observe_field "todo_due",
|
||||
:frequency => 2,
|
||||
:update => "date-preview",
|
||||
:with => "todo_due",
|
||||
:complete => "Element.show('date-preview')",
|
||||
:url => { :controller => "todo", :action => "date_preview" } %>
|
||||
|
||||
<%= calendar_setup( "todo_due" ) %>
|
||||
<%= calendar_setup( "todo_show_from" ) %>
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
<strong><%= @form_date %></strong>
|
||||
Loading…
Add table
Add a link
Reference in a new issue