@@ -11,7 +11,7 | |||||
11 |
|
11 | |||
12 | <% if @allowed_statuses.present? %> |
|
12 | <% if @allowed_statuses.present? %> | |
13 | <li class="folder"> |
|
13 | <li class="folder"> | |
14 |
<a href="#" class="submenu" |
|
14 | <a href="#" class="submenu"><%= l(:field_status) %></a> | |
15 | <ul> |
|
15 | <ul> | |
16 | <% @allowed_statuses.each do |s| -%> |
|
16 | <% @allowed_statuses.each do |s| -%> | |
17 | <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {:status_id => s}, :back_url => @back}, :method => :post, |
|
17 | <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issues.collect(&:id), :issue => {:status_id => s}, :back_url => @back}, :method => :post, |
@@ -35,6 +35,10 ContextMenu.prototype = { | |||||
35 | }, |
|
35 | }, | |
36 |
|
36 | |||
37 | Click: function(e) { |
|
37 | Click: function(e) { | |
|
38 | if (Event.element(e).tagName == 'A' && Event.element(e).hasClassName('submenu')) { | |||
|
39 | Event.stop(e) | |||
|
40 | return; | |||
|
41 | } | |||
38 | this.hideMenu(); |
|
42 | this.hideMenu(); | |
39 | if (Event.element(e).tagName == 'A' || Event.element(e).tagName == 'IMG') { return; } |
|
43 | if (Event.element(e).tagName == 'A' || Event.element(e).tagName == 'IMG') { return; } | |
40 | if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { |
|
44 | if (Event.isLeftClick(e) || (navigator.appVersion.match(/\bMSIE\b/))) { |
General Comments 0
You need to be logged in to leave comments.
Login now