mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 22:54:09 +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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue