@@ -44,11 +44,11 | |||||
44 | </fieldset> |
|
44 | </fieldset> | |
45 | </div> |
|
45 | </div> | |
46 | <p class="buttons"> |
|
46 | <p class="buttons"> | |
47 |
<%= link_to_function l(:button_apply), ' |
|
47 | <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> | |
48 | <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> |
|
48 | <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> | |
49 | <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
49 | <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> | |
50 | <%= link_to_function l(:button_save), |
|
50 | <%= link_to_function l(:button_save), | |
51 |
"$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }') |
|
51 | "$('#query_form').attr('action', '#{ @project ? new_project_query_path(@project) : new_query_path }').submit()", | |
52 | :class => 'icon icon-save' %> |
|
52 | :class => 'icon icon-save' %> | |
53 | <% end %> |
|
53 | <% end %> | |
54 | </p> |
|
54 | </p> |
@@ -20,7 +20,7 | |||||
20 | </div> |
|
20 | </div> | |
21 |
|
21 | |||
22 | <p class="buttons"> |
|
22 | <p class="buttons"> | |
23 |
<%= link_to_function l(:button_apply), ' |
|
23 | <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> | |
24 | <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> |
|
24 | <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> | |
25 | </p> |
|
25 | </p> | |
26 | </div> |
|
26 | </div> |
@@ -88,7 +88,7 function initFilters() { | |||||
88 | toggleMultiSelect($(this).siblings('select')); |
|
88 | toggleMultiSelect($(this).siblings('select')); | |
89 | }); |
|
89 | }); | |
90 | $('#filters-table').on('keypress', 'input[type=text]', function(e) { |
|
90 | $('#filters-table').on('keypress', 'input[type=text]', function(e) { | |
91 | if (e.keyCode == 13) submit_query_form("query_form"); |
|
91 | if (e.keyCode == 13) $(this).closest('form').submit(); | |
92 | }); |
|
92 | }); | |
93 | } |
|
93 | } | |
94 |
|
94 | |||
@@ -287,10 +287,6 function toggleMultiSelect(el) { | |||||
287 | } |
|
287 | } | |
288 | } |
|
288 | } | |
289 |
|
289 | |||
290 | function submit_query_form(id) { |
|
|||
291 | $('#'+id).submit(); |
|
|||
292 | } |
|
|||
293 |
|
||||
294 | function showTab(name, url) { |
|
290 | function showTab(name, url) { | |
295 | $('div#content .tab-content').hide(); |
|
291 | $('div#content .tab-content').hide(); | |
296 | $('div.tabs a').removeClass('selected'); |
|
292 | $('div.tabs a').removeClass('selected'); |
General Comments 0
You need to be logged in to leave comments.
Login now