mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
Cleaner form clearing for new recurring todos
Just replace the entire HTML to make sure it works right Fixes #1003, Fixes #1004
This commit is contained in:
parent
3f14a7a8bb
commit
0778284afe
4 changed files with 5 additions and 9 deletions
|
|
@ -2,7 +2,7 @@ class RecurringTodosController < ApplicationController
|
|||
|
||||
helper :todos, :recurring_todos
|
||||
|
||||
append_before_filter :init, :only => [:index, :new, :edit]
|
||||
append_before_filter :init, :only => [:index, :new, :edit, :create]
|
||||
append_before_filter :get_recurring_todo_from_param, :only => [:destroy, :toggle_check, :toggle_star, :edit, :update]
|
||||
|
||||
def index
|
||||
|
|
@ -243,7 +243,7 @@ class RecurringTodosController < ApplicationController
|
|||
|
||||
private
|
||||
|
||||
def init
|
||||
def init
|
||||
@days_of_week = [ ['Sunday',0], ['Monday',1], ['Tuesday', 2], ['Wednesday',3], ['Thursday',4], ['Friday',5], ['Saturday',6]]
|
||||
@months_of_year = [
|
||||
['January',1], ['Februari',2], ['March', 3], ['April',4], ['May',5], ['June',6],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue