From 6334a3f7d74f5f89653bd8a1f8749fa82db7785c Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 26 Jul 2010 22:09:22 +0200 Subject: [PATCH] set defaults right when adding a new action on the mobile interface from the context or project page. Fixes #1051. We need tests for this :-) --- app/views/layouts/mobile.m.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index 75cd4049..8bacf7c9 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -1,5 +1,5 @@ <% - new_todo_params = {} + new_todo_params = {:format => :m} new_todo_params[:from_project] = @mobile_from_project if @mobile_from_project new_todo_params[:from_context] = @mobile_from_context if @mobile_from_context -%> @@ -16,7 +16,7 @@

<%= @down_count %> <%= current_user.time.strftime(@prefs.title_date_format) -%>