@@ -44,11 +44,11 | |||
|
44 | 44 | </fieldset> |
|
45 | 45 | </div> |
|
46 | 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 | 48 | <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> |
|
49 | 49 | <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %> |
|
50 | 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 | 52 | :class => 'icon icon-save' %> |
|
53 | 53 | <% end %> |
|
54 | 54 | </p> |
@@ -20,7 +20,7 | |||
|
20 | 20 | </div> |
|
21 | 21 | |
|
22 | 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 | 24 | <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> |
|
25 | 25 | </p> |
|
26 | 26 | </div> |
@@ -88,7 +88,7 function initFilters() { | |||
|
88 | 88 | toggleMultiSelect($(this).siblings('select')); |
|
89 | 89 | }); |
|
90 | 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 | 290 | function showTab(name, url) { |
|
295 | 291 | $('div#content .tab-content').hide(); |
|
296 | 292 | $('div.tabs a').removeClass('selected'); |
General Comments 0
You need to be logged in to leave comments.
Login now