From 2904bc953246278487cb3697361c061f8c79c4bc Mon Sep 17 00:00:00 2001 From: tim madden Date: Fri, 11 Mar 2011 13:50:33 -0600 Subject: [PATCH 1/2] Adding more options for deferring + shortening the one day so it stops wrapping --- app/views/todos/_todo.html.erb | 2 ++ config/locales/en.yml | 2 +- public/images/defer_2.png | Bin 0 -> 496 bytes public/images/defer_2_off.png | Bin 0 -> 425 bytes public/images/defer_3.png | Bin 0 -> 501 bytes public/images/defer_3_off.png | Bin 0 -> 441 bytes 6 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 public/images/defer_2.png create mode 100644 public/images/defer_2_off.png create mode 100644 public/images/defer_3.png create mode 100644 public/images/defer_3_off.png diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 0f95e258..6f7edbc6 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -17,6 +17,8 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag'
  • <%= remote_delete_menu_item(todo) %>
  • <% unless todo.completed? || todo.deferred? -%>
  • <%= remote_defer_menu_item(1, todo) %>
  • +
  • <%= remote_defer_menu_item(2, todo) %>
  • +
  • <%= remote_defer_menu_item(3, todo) %>
  • <%= remote_defer_menu_item(7, todo) %>
  • <%= remote_promote_to_project_menu_item(todo) %>
  • <% end -%> diff --git a/config/locales/en.yml b/config/locales/en.yml index f356bfb3..14c8dcd6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -426,7 +426,7 @@ en: completed_last_x_days: Completed in the last %{count} days no_actions_with: Currently there are no incomplete actions with the tag '%{tag_name}' defer_x_days: - one: Defer one day + one: Defer 1 day other: Defer %{count} days added_new_next_action_singular: Added new next action no_completed_actions: Currently there are no completed actions. diff --git a/public/images/defer_2.png b/public/images/defer_2.png new file mode 100644 index 0000000000000000000000000000000000000000..c27b735bfcb92eb0a594ab6d2153a2d8e8b391bc GIT binary patch literal 496 zcmVZ5EF*HHw!6!;X^b^~WtpY?ss(J%`pX=|TD>ww%xj_yJ?uI<)V=sY`tWP4YK zA9HZnecS<{Q}4ux8eCh~mWOg7b%q3Ro4O9Y|)Mvwp0#sg>=qZB|ZK zxU@2a31h$8e0ra?fv-=&9!~B}_F&AmX-QS&;=lj9){9VH#VtxVmN+ zG;LiF{1z()gGrOa^@Y8E@-a|!ioui4yPS78_rkrRl;WHC`>Gqzsy{^Jqqs^bxib_I zHJMC4N+lxdX4-lsuEQ`4hQlFMRdF~RsH*Bt^VST5Ai!}P27>`%7(UcIHS~R7bIY>W z@AvF>JGR>`0R4XdJwwwpHNRf3Y&IJJY}=;S>roWN-Jgdu48xFiyNzwz%w{vr=QGRY zQm67fkJV~LS(eQV<2VLjKA#gsk*+(A!+1Pqy@MeGO{dtsgwF~_{QqV&tIE=x!GmX TWP+-IH4nPNfaIru*CcwCoa8I~)yv@Iw1nLY|;fph(wlln1p5^>IYR%pJNuEX)*gtKR2 z^28I-K$Nvmg0tsSkKY3{^mhQVOIZS1fY5M=o!MQgA5}89833LeFBI(}@lc$@yCYh5 zt3Pn#aub03YM#W!IsgG}jERv+%K8=Mhbv<77}Kp8ZeDMC_t4M{SJd8WPTn%x>@V-p zG@AH7M+p1Flz!CIEPzhwu9sV=%_hY&NOa>m*6?<8SE< zvn(sT=XvycJzUqNR;!_u!Wi>f%U8{2v%((^2bRkvVHk2gpIIyxckMm}{#F!4L{U_l jk=x_&iPe*Te{H@2Qz3CU3n93s00000NkvXXu0mjfhX}h9 literal 0 HcmV?d00001 From f7faef3c91dc1e3e7eb08c6b1ace7e7d1dc3cb68 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 4 Jan 2012 16:05:11 +0100 Subject: [PATCH 2/2] fix #1203. The fix of #1152 works for IE7 too. --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 232ae12c..5c2302f8 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1318,7 +1318,7 @@ function enable_rich_interaction(){ $(document).ready(function() { // fix for IE8. Without this checkboxes don't work AJAXy. See #1152 - if($.browser.msie && ($.browser.version.substring(0, 2) == "8.")) { + if($.browser.msie && ( ($.browser.version.substring(0, 2) == "8.") || ($.browser.version.substring(0, 2) == "7.") ) ) { $('body').bind('change', function() { return true; });