From dfffbc78c36720ac557c1b121be89ebc67406d98 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Thu, 19 Mar 2009 22:55:03 +0100 Subject: [PATCH] further enhance the context menu and fix showing of context menu on ie --- app/controllers/application.rb | 6 +++++ app/views/layouts/standard.html.erb | 10 +++++---- app/views/todos/_todo.html.erb | 12 +++++----- public/stylesheets/standard.css | 11 +++++---- public/stylesheets/superfish.css | 35 +++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+), 14 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 550a8fca..4e731527 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -30,6 +30,7 @@ class ApplicationController < ActionController::Base before_filter :set_session_expiration before_filter :set_time_zone + before_filter :set_zindex_counter prepend_before_filter :login_required prepend_before_filter :enable_mobile_content_negotiation after_filter :set_charset @@ -262,5 +263,10 @@ class ApplicationController < ActionController::Base def set_time_zone Time.zone = current_user.prefs.time_zone if logged_in? end + + def set_zindex_counter + # this counter can be used to handle the IE z-index bug + @z_index_counter = 10 + end end diff --git a/app/views/layouts/standard.html.erb b/app/views/layouts/standard.html.erb index 3590c64a..7bc4d623 100644 --- a/app/views/layouts/standard.html.erb +++ b/app/views/layouts/standard.html.erb @@ -26,7 +26,6 @@ href="<%= search_plugin_path %>" />