From 913a806f9011ac3d47cd365d1c694660534f52f4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 11 Feb 2008 17:59:41 +0000 Subject: [PATCH] Fixed: context menu not available if the initial issue list is empty. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1133 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_list.rhtml | 8 -------- app/views/issues/index.rhtml | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/views/issues/_list.rhtml b/app/views/issues/_list.rhtml index 1f5470200..343f7173d 100644 --- a/app/views/issues/_list.rhtml +++ b/app/views/issues/_list.rhtml @@ -19,11 +19,3 @@ <% end -%> - -<% content_for :header_tags do -%> - <%= javascript_include_tag 'context_menu' %> - <%= stylesheet_link_tag 'context_menu' %> -<% end -%> - - -<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> diff --git a/app/views/issues/index.rhtml b/app/views/issues/index.rhtml index c5f26dfb6..4d1f4f176 100644 --- a/app/views/issues/index.rhtml +++ b/app/views/issues/index.rhtml @@ -57,4 +57,9 @@ <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %> <%= auto_discovery_link_tag(:atom, {:action => 'changes', :query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_changes_details)) %> + <%= javascript_include_tag 'context_menu' %> + <%= stylesheet_link_tag 'context_menu' %> <% end %> + + +<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> -- 2.39.5